add debug port for cp

This commit is contained in:
CaiHQ
2022-09-02 21:00:02 +08:00
parent 0aac9d16d9
commit 0da9d88173
2 changed files with 20 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ public class Contract extends SM2Verifiable implements Serializable {
private YjsType yjsType;
private SerializableJson createParam;
private int remoteDebugPort = 0;
public int getShardingId() {
return this.shardingId;
@@ -232,9 +233,17 @@ public class Contract extends SM2Verifiable implements Serializable {
createParam = new SerializableJson(ele);
}
public void setRemoteDebugPort(int port) {
remoteDebugPort = port;
}
public JsonElement getCreateParam() {
if (createParam != null)
return createParam.getJsonElement();
return null;
}
public int getRemoteDebugPort() {
return remoteDebugPort;
}
}