accounts/abi/bind, eth: add contract non-existent error

This commit is contained in:
Péter Szilágyi
2016-04-27 16:29:13 +03:00
parent db62979514
commit cdcbb2f160
5 changed files with 75 additions and 4 deletions

View File

@ -17,12 +17,22 @@
package bind
import (
"errors"
"math/big"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
)
// ErrNoCode is returned by call and transact operations for which the requested
// recipient contract to operate on does not exist in the state db or does not
// have any code associated with it (i.e. suicided).
//
// Please note, this error string is part of the RPC API and is expected by the
// native contract bindings to signal this particular error. Do not change this
// as it will break all dependent code!
var ErrNoCode = errors.New("no contract code at given address")
// ContractCaller defines the methods needed to allow operating with contract on a read
// only basis.
type ContractCaller interface {