mirror of
https://gitee.com/BDWare/common
synced 2026-02-14 16:49:28 +00:00
feat: support onCreateParams
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user