File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
src/main/java/org/tron/core Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,10 @@ public boolean validate() throws ContractValidateException {
167167 throw new ContractValidateException ("Num must greater than 0!" );
168168 }
169169
170+ if (assetIssueContract .getPublicFreeAssetNetUsage () != 0 ) {
171+ throw new ContractValidateException ("PublicFreeAssetNetUsage must be 0!" );
172+ }
173+
170174 if (assetIssueContract .getFrozenSupplyCount ()
171175 > this .dbManager .getDynamicPropertiesStore ().getMaxFrozenSupplyNumber ()) {
172176 throw new ContractValidateException ("Frozen supply list length is too long" );
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ public boolean execute(TransactionResultCapsule ret) throws ContractExeException
5757
5858 assetIssueCapsule .setFreeAssetNetLimit (newLimit );
5959 assetIssueCapsule .setPublicFreeAssetNetLimit (newPublicLimit );
60+ assetIssueCapsule .setUrl (ByteString .copyFrom (newUrl ));
61+ assetIssueCapsule .setDescription (ByteString .copyFrom (newDescription ));
6062 assetIssueStore .put (assetIssueCapsule .createDbKey (), assetIssueCapsule );
6163
6264 ret .setStatus (fee , code .SUCESS );
Original file line number Diff line number Diff line change @@ -133,4 +133,12 @@ public long getPublicLatestFreeNetTime() {
133133 public void setPublicLatestFreeNetTime (long time ) {
134134 this .assetIssueContract .toBuilder ().setPublicLatestFreeNetTime (time ).build ();
135135 }
136+
137+ public void setUrl (ByteString newUrl ) {
138+ this .assetIssueContract .toBuilder ().setUrl (newUrl ).build ();
139+ }
140+
141+ public void setDescription (ByteString string ) {
142+ this .assetIssueContract .toBuilder ().setDescription (string ).build ();
143+ }
136144}
You can’t perform that action at this time.
0 commit comments