@@ -87,12 +87,12 @@ public void consume(TransactionCapsule trx, TransactionTrace trace)
8787 bytesSize += Constant .MAX_RESULT_SIZE_IN_TX ;
8888 }
8989
90- logger .debug ("trxId {},bandwidth cost : {}" , trx .getTransactionId (), bytesSize );
90+ logger .debug ("trxId {}, bandwidth cost: {}" , trx .getTransactionId (), bytesSize );
9191 trace .setNetBill (bytesSize , 0 );
9292 byte [] address = TransactionCapsule .getOwner (contract );
9393 AccountCapsule accountCapsule = dbManager .getAccountStore ().get (address );
9494 if (accountCapsule == null ) {
95- throw new ContractValidateException ("account not exists " );
95+ throw new ContractValidateException ("account does not exist " );
9696 }
9797 long now = dbManager .getHeadSlot ();
9898
@@ -120,7 +120,7 @@ public void consume(TransactionCapsule trx, TransactionTrace trace)
120120
121121 long fee = dbManager .getDynamicPropertiesStore ().getTransactionFee () * bytesSize ;
122122 throw new AccountResourceInsufficientException (
123- "Account Insufficient bandwidth[" + bytesSize + "] and balance["
123+ "Account has insufficient bandwidth[" + bytesSize + "] and balance["
124124 + fee + "] to create new account" );
125125 }
126126 }
@@ -235,7 +235,7 @@ private boolean useAssetAccountNet(Contract contract, AccountCapsule accountCaps
235235 dbManager .getAssetIssueStore (), dbManager .getAssetIssueV2Store ())
236236 .get (assetName .toByteArray ());
237237 if (assetIssueCapsule == null ) {
238- throw new ContractValidateException ("asset not exists " );
238+ throw new ContractValidateException ("asset does not exist " );
239239 }
240240
241241 String tokenName = ByteArray .toStr (assetName .toByteArray ());
@@ -288,7 +288,7 @@ private boolean useAssetAccountNet(Contract contract, AccountCapsule accountCaps
288288 long newIssuerNetUsage = increase (issuerNetUsage , 0 , latestConsumeTime , now );
289289
290290 if (bytes > (issuerNetLimit - newIssuerNetUsage )) {
291- logger .debug ("The " + tokenID + " issuer'bandwidth is not enough" );
291+ logger .debug ("The " + tokenID + " issuer's bandwidth is not enough" );
292292 return false ;
293293 }
294294
@@ -363,7 +363,7 @@ private boolean useAccountNet(AccountCapsule accountCapsule, long bytes, long no
363363 long newNetUsage = increase (netUsage , 0 , latestConsumeTime , now );
364364
365365 if (bytes > (netLimit - newNetUsage )) {
366- logger .debug ("net usage is running out. now use free net usage" );
366+ logger .debug ("net usage is running out, now use free net usage" );
367367 return false ;
368368 }
369369
0 commit comments