diff --git a/accounts/abi/abigen/source2.go.tpl b/accounts/abi/abigen/source2.go.tpl index ea559473f6..db96c66be2 100644 --- a/accounts/abi/abigen/source2.go.tpl +++ b/accounts/abi/abigen/source2.go.tpl @@ -70,7 +70,7 @@ var ( // Instance creates a wrapper for a deployed contract instance at the given address. // Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc. func (c *{{.Type}}) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } {{ if .Constructor.Inputs }} diff --git a/accounts/abi/bind/v2/lib.go b/accounts/abi/bind/v2/lib.go index 4cdd926f81..fc4362e2c0 100644 --- a/accounts/abi/bind/v2/lib.go +++ b/accounts/abi/bind/v2/lib.go @@ -27,11 +27,6 @@ import ( "github.com/ethereum/go-ethereum/event" ) -// TODO: remove this and use NewBoundContract directly -func NewContractInstance(backend ContractBackend, addr common.Address, abi abi.ABI) BoundContract { - return NewBoundContract(backend, addr, abi) -} - // ContractEvent is a type constraint for ABI event types. type ContractEvent interface { ContractEventName() string