internal/ethapi: return vmError()

This commit is contained in:
Marius van der Wijden
2020-05-21 15:45:50 +02:00
committed by Péter Szilágyi
parent fbdc6bba66
commit 9f8a0b597e

View File

@ -868,7 +868,7 @@ func DoCall(ctx context.Context, b Backend, args CallArgs, blockNrOrHash rpc.Blo
return nil, fmt.Errorf("execution reverted: %v", reason) return nil, fmt.Errorf("execution reverted: %v", reason)
} }
} }
return result, result.Err return result, err
} }
// Call executes the given transaction on the state for the given block number. // Call executes the given transaction on the state for the given block number.