Skip to content

Commit d84f103

Browse files
committed
feat(validate): validate account creation transaction size
1 parent 3d5e0f1 commit d84f103

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

framework/src/test/java/org/tron/core/actuator/ProposalCreateActuatorTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ public void invalidPara() {
305305
dbManager.getDynamicPropertiesStore().saveMaxDelegateLockPeriod(86400L);
306306
long maxDelegateLockPeriod = dbManager.getDynamicPropertiesStore().getMaxDelegateLockPeriod();
307307
assertThrows(
308-
"This value[MAX_DELEGATE_LOCK_PERIOD] is only allowed to be greater than " +
309-
maxDelegateLockPeriod + " and less than or equal to " + ONE_YEAR_BLOCK_NUMBERS + "!",
308+
"This value[MAX_DELEGATE_LOCK_PERIOD] is only allowed to be greater than "
309+
+ maxDelegateLockPeriod + " and less than or equal to " + ONE_YEAR_BLOCK_NUMBERS + "!",
310310
ContractValidateException.class, actuator::validate);
311311

312312
// verify Proposal No. 82
@@ -325,8 +325,8 @@ public void invalidPara() {
325325
.setForkUtils(forkController)
326326
.setAny(getContract(OWNER_ADDRESS_FIRST, paras));
327327
assertThrows(
328-
"This value[MAX_CREATE_ACCOUNT_TX_SIZE] is only allowed to be greater than or equal " +
329-
"to " + CREATE_ACCOUNT_TRANSACTION_MIN_BYTE_SIZE + " and less than or equal to " +
328+
"This value[MAX_CREATE_ACCOUNT_TX_SIZE] is only allowed to be greater than or equal "
329+
+ "to " + CREATE_ACCOUNT_TRANSACTION_MIN_BYTE_SIZE + " and less than or equal to "
330330
+ CREATE_ACCOUNT_TRANSACTION_MAX_BYTE_SIZE + "!",
331331
ContractValidateException.class, actuator::validate);
332332
}

0 commit comments

Comments
 (0)