mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 06:23:47 +00:00
remove redundant method
This commit is contained in:
parent
3a96aaa819
commit
cf0d15d276
2 changed files with 1 additions and 6 deletions
|
|
@ -70,7 +70,7 @@ var (
|
||||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
// 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.
|
// 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 {
|
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 }}
|
{{ if .Constructor.Inputs }}
|
||||||
|
|
|
||||||
|
|
@ -27,11 +27,6 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/event"
|
"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.
|
// ContractEvent is a type constraint for ABI event types.
|
||||||
type ContractEvent interface {
|
type ContractEvent interface {
|
||||||
ContractEventName() string
|
ContractEventName() string
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue