remove redundant method

This commit is contained in:
Jared Wasinger 2025-02-03 20:18:34 -08:00
parent 3a96aaa819
commit cf0d15d276
2 changed files with 1 additions and 6 deletions

View file

@ -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 }}

View file

@ -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