diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-04-27 22:31:12 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-04-27 22:31:12 +0800 |
commit | 123aa659e4e2bdb9121f787ee8cd68acc9a4fe4c (patch) | |
tree | c0b750618d97a278f73ccfd7bbf380b40f1d3a0f /accounts/abi/bind/backend.go | |
parent | db62979514c69574aefdcf8c2ed9099aa0cd1abe (diff) | |
parent | cdcbb2f16014077597e5901c0f328920c904409e (diff) | |
download | dexon-123aa659e4e2bdb9121f787ee8cd68acc9a4fe4c.tar dexon-123aa659e4e2bdb9121f787ee8cd68acc9a4fe4c.tar.gz dexon-123aa659e4e2bdb9121f787ee8cd68acc9a4fe4c.tar.bz2 dexon-123aa659e4e2bdb9121f787ee8cd68acc9a4fe4c.tar.lz dexon-123aa659e4e2bdb9121f787ee8cd68acc9a4fe4c.tar.xz dexon-123aa659e4e2bdb9121f787ee8cd68acc9a4fe4c.tar.zst dexon-123aa659e4e2bdb9121f787ee8cd68acc9a4fe4c.zip |
Merge pull request #2496 from karalabe/abibind-missing-contract-error
accounts/abi/bind, eth: add contract non-existent error
Diffstat (limited to 'accounts/abi/bind/backend.go')
-rw-r--r-- | accounts/abi/bind/backend.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/accounts/abi/bind/backend.go b/accounts/abi/bind/backend.go index 328f9f3b7..7442557cc 100644 --- a/accounts/abi/bind/backend.go +++ b/accounts/abi/bind/backend.go @@ -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 { |