File tree Expand file tree Collapse file tree
framework/src/main/java/org/tron/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 122122import org .tron .common .zksnark .LibrustzcashParam .SpendSigParams ;
123123import org .tron .consensus .ConsensusDelegate ;
124124import org .tron .core .actuator .Actuator ;
125+ import org .tron .core .actuator .ActuatorConstant ;
125126import org .tron .core .actuator .ActuatorFactory ;
126127import org .tron .core .actuator .UnfreezeBalanceV2Actuator ;
127128import org .tron .core .actuator .VMActuator ;
@@ -534,6 +535,9 @@ public GrpcAPI.Return broadcastTransaction(Transaction signedTransaction) {
534535 if (chainBaseManager .getDynamicPropertiesStore ().supportVM ()) {
535536 trx .resetResult ();
536537 }
538+ if (trx .getInstance ().getRawData ().getContractCount () == 0 ) {
539+ throw new ContractValidateException (ActuatorConstant .CONTRACT_NOT_EXIST );
540+ }
537541 dbManager .pushTransaction (trx );
538542 int num = tronNetService .fastBroadcastTransaction (message );
539543 if (num == 0 && minEffectiveConnection != 0 ) {
You can’t perform that action at this time.
0 commit comments