Ignore estimation with base transaction
@@ -124,6 +124,9 @@ func (tx *baseV3) Prepare(ctx contract.Context) (state.WorldContext, error) {
}
func (tx *baseV3) Execute(ctx contract.Context, estimate bool) (txresult.Receipt, error) {
+ if estimate {
+ return nil, errors.InvalidStateError.New("EstimationNotAllowed")
+ }
info := ctx.TransactionInfo()
if info == nil {
return nil, errors.InvalidStateError.New("TransactionInfoUnavailable")
