feat: support onCreateParams

This commit is contained in:
CaiHQ
2022-04-07 15:48:39 +08:00
parent 2d6c0e4874
commit 4047f03151
2 changed files with 22 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ public class Contract extends SM2Verifiable implements Serializable {
private String hash;
private boolean stateful = true; // manifest可配置
private YjsType yjsType;
private JsonElement createParam;
public int getShardingId() {
return this.shardingId;
@@ -226,4 +227,11 @@ public class Contract extends SM2Verifiable implements Serializable {
this.buildTime = buildTime;
}
public void setCreateParam(JsonElement ele) {
createParam = ele;
}
public JsonElement getCreateParam() {
return createParam;
}
}