diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-08-25 21:20:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-25 21:20:38 +0800 |
commit | 5fc032a9d16ac6ea1dc020f06e44c24c94a361a7 (patch) | |
tree | 363e7e1a3439424e00a4e7e72a701b97f737e6aa /accounts/abi/bind/template.go | |
parent | 806e3cd0751e7769bddbb2d4250b4520d912df42 (diff) | |
parent | c97df052a96820742fffdbb3ef5e77dbf1397637 (diff) | |
download | go-tangerine-5fc032a9d16ac6ea1dc020f06e44c24c94a361a7.tar go-tangerine-5fc032a9d16ac6ea1dc020f06e44c24c94a361a7.tar.gz go-tangerine-5fc032a9d16ac6ea1dc020f06e44c24c94a361a7.tar.bz2 go-tangerine-5fc032a9d16ac6ea1dc020f06e44c24c94a361a7.tar.lz go-tangerine-5fc032a9d16ac6ea1dc020f06e44c24c94a361a7.tar.xz go-tangerine-5fc032a9d16ac6ea1dc020f06e44c24c94a361a7.tar.zst go-tangerine-5fc032a9d16ac6ea1dc020f06e44c24c94a361a7.zip |
Merge pull request #2930 from fjl/ethclient
Stable Go API, part 1
Diffstat (limited to 'accounts/abi/bind/template.go')
-rw-r--r-- | accounts/abi/bind/template.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/abi/bind/template.go b/accounts/abi/bind/template.go index 72998bb6d..523122213 100644 --- a/accounts/abi/bind/template.go +++ b/accounts/abi/bind/template.go @@ -127,7 +127,7 @@ package {{.Package}} // New{{.Type}} creates a new instance of {{.Type}}, bound to a specific deployed contract. func New{{.Type}}(address common.Address, backend bind.ContractBackend) (*{{.Type}}, error) { - contract, err := bind{{.Type}}(address, backend.(bind.ContractCaller), backend.(bind.ContractTransactor)) + contract, err := bind{{.Type}}(address, backend, backend) if err != nil { return nil, err } |