Charge call step to chainScore.setBTPPublicKey
@@ -1629,6 +1629,9 @@ func (s *ChainScore) Ex_sendBTPMessage(networkId *common.HexInt, message []byte)
}
func (s *ChainScore) Ex_setBTPPublicKey(name string, pubKey []byte) error {
+ if err := s.tryChargeCall(); err != nil {
+ return err
+ }
if s.from.IsContract() {
return scoreresult.New(module.StatusAccessDenied, "NoPermission")
}
