Charge steps for CALL on ContractNotFound
@@ -35,6 +35,9 @@ func (s *chainScore) iissHandleRevision() error {
revision := s.cc.Revision().Value()
if revision < icmodule.RevisionIISS {
// chain SCORE was added on RevisionIISS
+ if !s.cc.ApplySteps(state.StepTypeContractCall, 1) {
+ return scoreresult.ErrOutOfStep
+ }
return scoreresult.ErrContractNotFound
}
return nil
