aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/bind/backends/nil.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-06-30 17:57:50 +0800
committerGitHub <noreply@github.com>2016-06-30 17:57:50 +0800
commit1e50f5dd281d28b8db1c65b9e80e53080b86e369 (patch)
tree30a0832e6f514fe06fe9308043eaa20d2ba44b13 /accounts/abi/bind/backends/nil.go
parentf127799d795eaf2d6f99780c058361cd561492f1 (diff)
parent3a97280ae889bb6852ba16e70750a37b2ed08473 (diff)
downloadgo-tangerine-1e50f5dd281d28b8db1c65b9e80e53080b86e369.tar
go-tangerine-1e50f5dd281d28b8db1c65b9e80e53080b86e369.tar.gz
go-tangerine-1e50f5dd281d28b8db1c65b9e80e53080b86e369.tar.bz2
go-tangerine-1e50f5dd281d28b8db1c65b9e80e53080b86e369.tar.lz
go-tangerine-1e50f5dd281d28b8db1c65b9e80e53080b86e369.tar.xz
go-tangerine-1e50f5dd281d28b8db1c65b9e80e53080b86e369.tar.zst
go-tangerine-1e50f5dd281d28b8db1c65b9e80e53080b86e369.zip
Merge pull request #2159 from zsfelfoldi/light-backend
eth: separate common and full node-specific API and backend service
Diffstat (limited to 'accounts/abi/bind/backends/nil.go')
-rw-r--r--accounts/abi/bind/backends/nil.go19
1 files changed, 13 insertions, 6 deletions
diff --git a/accounts/abi/bind/backends/nil.go b/accounts/abi/bind/backends/nil.go
index f10bb61ac..54b222f1f 100644
--- a/accounts/abi/bind/backends/nil.go
+++ b/accounts/abi/bind/backends/nil.go
@@ -22,6 +22,7 @@ import (
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
+ "golang.org/x/net/context"
)
// This nil assignment ensures compile time that nilBackend implements bind.ContractBackend.
@@ -32,16 +33,22 @@ var _ bind.ContractBackend = (*nilBackend)(nil)
// wrappers without calling any methods on them.
type nilBackend struct{}
-func (*nilBackend) ContractCall(common.Address, []byte, bool) ([]byte, error) {
+func (*nilBackend) ContractCall(context.Context, common.Address, []byte, bool) ([]byte, error) {
panic("not implemented")
}
-func (*nilBackend) EstimateGasLimit(common.Address, *common.Address, *big.Int, []byte) (*big.Int, error) {
+func (*nilBackend) EstimateGasLimit(context.Context, common.Address, *common.Address, *big.Int, []byte) (*big.Int, error) {
+ panic("not implemented")
+}
+func (*nilBackend) HasCode(context.Context, common.Address, bool) (bool, error) {
+ panic("not implemented")
+}
+func (*nilBackend) SuggestGasPrice(context.Context) (*big.Int, error) { panic("not implemented") }
+func (*nilBackend) PendingAccountNonce(context.Context, common.Address) (uint64, error) {
+ panic("not implemented")
+}
+func (*nilBackend) SendTransaction(context.Context, *types.Transaction) error {
panic("not implemented")
}
-func (*nilBackend) HasCode(common.Address, bool) (bool, error) { panic("not implemented") }
-func (*nilBackend) SuggestGasPrice() (*big.Int, error) { panic("not implemented") }
-func (*nilBackend) PendingAccountNonce(common.Address) (uint64, error) { panic("not implemented") }
-func (*nilBackend) SendTransaction(*types.Transaction) error { panic("not implemented") }
// NewNilBackend creates a new binding backend that can be used for instantiation
// but will panic on any invocation. Its sole purpose is to help testing.