diff --git a/accounts/abi/abigen/testdata/v2/callbackparam.go.txt b/accounts/abi/abigen/testdata/v2/callbackparam.go.txt index e9ad8b0d2e..6822c81b99 100644 --- a/accounts/abi/abigen/testdata/v2/callbackparam.go.txt +++ b/accounts/abi/abigen/testdata/v2/callbackparam.go.txt @@ -46,7 +46,7 @@ func NewCallbackParam() *CallbackParam { // 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 *CallbackParam) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // Test is a free data retrieval call binding the contract method 0xd7a5aba2. diff --git a/accounts/abi/abigen/testdata/v2/crowdsale.go.txt b/accounts/abi/abigen/testdata/v2/crowdsale.go.txt index 3df947a34d..73e1a54738 100644 --- a/accounts/abi/abigen/testdata/v2/crowdsale.go.txt +++ b/accounts/abi/abigen/testdata/v2/crowdsale.go.txt @@ -46,7 +46,7 @@ func NewCrowdsale() *Crowdsale { // 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 *Crowdsale) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } func (crowdsale *Crowdsale) PackConstructor(ifSuccessfulSendTo common.Address, fundingGoalInEthers *big.Int, durationInMinutes *big.Int, etherCostOfEachToken *big.Int, addressOfTokenUsedAsReward common.Address) []byte { diff --git a/accounts/abi/abigen/testdata/v2/dao.go.txt b/accounts/abi/abigen/testdata/v2/dao.go.txt index dc9ebd62ef..3c8d86acfc 100644 --- a/accounts/abi/abigen/testdata/v2/dao.go.txt +++ b/accounts/abi/abigen/testdata/v2/dao.go.txt @@ -46,7 +46,7 @@ func NewDAO() *DAO { // 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 *DAO) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } func (dAO *DAO) PackConstructor(minimumQuorumForProposals *big.Int, minutesForDebate *big.Int, marginOfVotesForMajority *big.Int, congressLeader common.Address) []byte { diff --git a/accounts/abi/abigen/testdata/v2/deeplynestedarray.go.txt b/accounts/abi/abigen/testdata/v2/deeplynestedarray.go.txt index 21c1c3b4cd..faf1e36c41 100644 --- a/accounts/abi/abigen/testdata/v2/deeplynestedarray.go.txt +++ b/accounts/abi/abigen/testdata/v2/deeplynestedarray.go.txt @@ -46,7 +46,7 @@ func NewDeeplyNestedArray() *DeeplyNestedArray { // 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 *DeeplyNestedArray) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // DeepUint64Array is a free data retrieval call binding the contract method 0x98ed1856. diff --git a/accounts/abi/abigen/testdata/v2/empty.go.txt b/accounts/abi/abigen/testdata/v2/empty.go.txt index cf4d1aeedf..801873a687 100644 --- a/accounts/abi/abigen/testdata/v2/empty.go.txt +++ b/accounts/abi/abigen/testdata/v2/empty.go.txt @@ -46,5 +46,5 @@ func NewEmpty() *Empty { // 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 *Empty) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } diff --git a/accounts/abi/abigen/testdata/v2/eventchecker.go.txt b/accounts/abi/abigen/testdata/v2/eventchecker.go.txt index 1d10a4e695..57d0ddaea0 100644 --- a/accounts/abi/abigen/testdata/v2/eventchecker.go.txt +++ b/accounts/abi/abigen/testdata/v2/eventchecker.go.txt @@ -45,7 +45,7 @@ func NewEventChecker() *EventChecker { // 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 *EventChecker) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // EventCheckerDynamic represents a Dynamic event raised by the EventChecker contract. diff --git a/accounts/abi/abigen/testdata/v2/getter.go.txt b/accounts/abi/abigen/testdata/v2/getter.go.txt index ccd90ab409..479ea938e2 100644 --- a/accounts/abi/abigen/testdata/v2/getter.go.txt +++ b/accounts/abi/abigen/testdata/v2/getter.go.txt @@ -46,7 +46,7 @@ func NewGetter() *Getter { // 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 *Getter) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // Getter is a free data retrieval call binding the contract method 0x993a04b7. diff --git a/accounts/abi/abigen/testdata/v2/identifiercollision.go.txt b/accounts/abi/abigen/testdata/v2/identifiercollision.go.txt index f2d59f607e..43083c619b 100644 --- a/accounts/abi/abigen/testdata/v2/identifiercollision.go.txt +++ b/accounts/abi/abigen/testdata/v2/identifiercollision.go.txt @@ -46,7 +46,7 @@ func NewIdentifierCollision() *IdentifierCollision { // 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 *IdentifierCollision) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // MyVar is a free data retrieval call binding the contract method 0x4ef1f0ad. diff --git a/accounts/abi/abigen/testdata/v2/inputchecker.go.txt b/accounts/abi/abigen/testdata/v2/inputchecker.go.txt index ad10a0dc76..1b0e63a1a6 100644 --- a/accounts/abi/abigen/testdata/v2/inputchecker.go.txt +++ b/accounts/abi/abigen/testdata/v2/inputchecker.go.txt @@ -45,7 +45,7 @@ func NewInputChecker() *InputChecker { // 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 *InputChecker) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // AnonInput is a free data retrieval call binding the contract method 0x3e708e82. diff --git a/accounts/abi/abigen/testdata/v2/interactor.go.txt b/accounts/abi/abigen/testdata/v2/interactor.go.txt index 5d11f6ff03..2fe77e4dcc 100644 --- a/accounts/abi/abigen/testdata/v2/interactor.go.txt +++ b/accounts/abi/abigen/testdata/v2/interactor.go.txt @@ -46,7 +46,7 @@ func NewInteractor() *Interactor { // 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 *Interactor) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } func (interactor *Interactor) PackConstructor(str string) []byte { diff --git a/accounts/abi/abigen/testdata/v2/nameconflict.go.txt b/accounts/abi/abigen/testdata/v2/nameconflict.go.txt index 9c5ce15cf3..95b85a964f 100644 --- a/accounts/abi/abigen/testdata/v2/nameconflict.go.txt +++ b/accounts/abi/abigen/testdata/v2/nameconflict.go.txt @@ -52,7 +52,7 @@ func NewNameConflict() *NameConflict { // 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 *NameConflict) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // AddRequest is a free data retrieval call binding the contract method 0xcce7b048. diff --git a/accounts/abi/abigen/testdata/v2/numericmethodname.go.txt b/accounts/abi/abigen/testdata/v2/numericmethodname.go.txt index 10c4a2248a..2cb36bce57 100644 --- a/accounts/abi/abigen/testdata/v2/numericmethodname.go.txt +++ b/accounts/abi/abigen/testdata/v2/numericmethodname.go.txt @@ -46,13 +46,13 @@ func NewNumericMethodName() *NumericMethodName { // 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 *NumericMethodName) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } -// E1test is a free data retrieval call binding the contract method 0xffa02795. +// E1test0 is a free data retrieval call binding the contract method 0xffa02795. // // Solidity: function _1test() pure returns() -func (numericMethodName *NumericMethodName) PackE1test() []byte { +func (numericMethodName *NumericMethodName) PackE1test0() []byte { enc, err := numericMethodName.abi.Pack("_1test") if err != nil { panic(err) @@ -60,10 +60,10 @@ func (numericMethodName *NumericMethodName) PackE1test() []byte { return enc } -// E1test0 is a free data retrieval call binding the contract method 0xd02767c7. +// E1test is a free data retrieval call binding the contract method 0xd02767c7. // // Solidity: function __1test() pure returns() -func (numericMethodName *NumericMethodName) PackE1test0() []byte { +func (numericMethodName *NumericMethodName) PackE1test() []byte { enc, err := numericMethodName.abi.Pack("__1test") if err != nil { panic(err) diff --git a/accounts/abi/abigen/testdata/v2/outputchecker.go.txt b/accounts/abi/abigen/testdata/v2/outputchecker.go.txt index 553b2493da..ffb9605c47 100644 --- a/accounts/abi/abigen/testdata/v2/outputchecker.go.txt +++ b/accounts/abi/abigen/testdata/v2/outputchecker.go.txt @@ -45,7 +45,7 @@ func NewOutputChecker() *OutputChecker { // 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 *OutputChecker) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // AnonOutput is a free data retrieval call binding the contract method 0x008bda05. diff --git a/accounts/abi/abigen/testdata/v2/overload.go.txt b/accounts/abi/abigen/testdata/v2/overload.go.txt index 5dc5fc7a17..3ffe3d4c8f 100644 --- a/accounts/abi/abigen/testdata/v2/overload.go.txt +++ b/accounts/abi/abigen/testdata/v2/overload.go.txt @@ -46,7 +46,7 @@ func NewOverload() *Overload { // 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 *Overload) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // Foo is a free data retrieval call binding the contract method 0x04bc52f8. diff --git a/accounts/abi/abigen/testdata/v2/rangekeyword.go.txt b/accounts/abi/abigen/testdata/v2/rangekeyword.go.txt index 83a6397b6d..623d2e7044 100644 --- a/accounts/abi/abigen/testdata/v2/rangekeyword.go.txt +++ b/accounts/abi/abigen/testdata/v2/rangekeyword.go.txt @@ -46,7 +46,7 @@ func NewRangeKeyword() *RangeKeyword { // 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 *RangeKeyword) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // FunctionWithKeywordParameter is a free data retrieval call binding the contract method 0x527a119f. diff --git a/accounts/abi/abigen/testdata/v2/slicer.go.txt b/accounts/abi/abigen/testdata/v2/slicer.go.txt index 0f6b68bf11..054800899d 100644 --- a/accounts/abi/abigen/testdata/v2/slicer.go.txt +++ b/accounts/abi/abigen/testdata/v2/slicer.go.txt @@ -46,7 +46,7 @@ func NewSlicer() *Slicer { // 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 *Slicer) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // EchoAddresses is a free data retrieval call binding the contract method 0xbe1127a3. diff --git a/accounts/abi/abigen/testdata/v2/structs-abi.go.txt b/accounts/abi/abigen/testdata/v2/structs-abi.go.txt index 1b2d660a34..3519a2ba50 100644 --- a/accounts/abi/abigen/testdata/v2/structs-abi.go.txt +++ b/accounts/abi/abigen/testdata/v2/structs-abi.go.txt @@ -50,7 +50,7 @@ func NewStructs() *Structs { // 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 *Structs) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // F is a free data retrieval call binding the contract method 0x28811f59. diff --git a/accounts/abi/abigen/testdata/v2/structs.go.txt b/accounts/abi/abigen/testdata/v2/structs.go.txt index 2123830c77..70183eb6ce 100644 --- a/accounts/abi/abigen/testdata/v2/structs.go.txt +++ b/accounts/abi/abigen/testdata/v2/structs.go.txt @@ -51,7 +51,7 @@ func NewStructs() *Structs { // 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 *Structs) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // F is a free data retrieval call binding the contract method 0x28811f59. diff --git a/accounts/abi/abigen/testdata/v2/token.go.txt b/accounts/abi/abigen/testdata/v2/token.go.txt index 1ee18c0775..5e95c8200a 100644 --- a/accounts/abi/abigen/testdata/v2/token.go.txt +++ b/accounts/abi/abigen/testdata/v2/token.go.txt @@ -46,7 +46,7 @@ func NewToken() *Token { // 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 *Token) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } func (token *Token) PackConstructor(initialSupply *big.Int, tokenName string, decimalUnits uint8, tokenSymbol string) []byte { diff --git a/accounts/abi/abigen/testdata/v2/tuple.go.txt b/accounts/abi/abigen/testdata/v2/tuple.go.txt index 3504d34905..065df682cb 100644 --- a/accounts/abi/abigen/testdata/v2/tuple.go.txt +++ b/accounts/abi/abigen/testdata/v2/tuple.go.txt @@ -71,7 +71,7 @@ func NewTuple() *Tuple { // 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 *Tuple) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // Func1 is a free data retrieval call binding the contract method 0x443c79b4. diff --git a/accounts/abi/abigen/testdata/v2/tupler.go.txt b/accounts/abi/abigen/testdata/v2/tupler.go.txt index 799ae2c76d..2a22c65037 100644 --- a/accounts/abi/abigen/testdata/v2/tupler.go.txt +++ b/accounts/abi/abigen/testdata/v2/tupler.go.txt @@ -46,7 +46,7 @@ func NewTupler() *Tupler { // 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 *Tupler) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // Tuple is a free data retrieval call binding the contract method 0x3175aae2. diff --git a/accounts/abi/abigen/testdata/v2/underscorer.go.txt b/accounts/abi/abigen/testdata/v2/underscorer.go.txt index 9a21ee451b..9fb16ead4a 100644 --- a/accounts/abi/abigen/testdata/v2/underscorer.go.txt +++ b/accounts/abi/abigen/testdata/v2/underscorer.go.txt @@ -46,7 +46,7 @@ func NewUnderscorer() *Underscorer { // 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 *Underscorer) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // AllPurelyUnderscoredOutput is a free data retrieval call binding the contract method 0xb564b34d. diff --git a/accounts/abi/bind/v2/internal/contracts/db/bindings.go b/accounts/abi/bind/v2/internal/contracts/db/bindings.go index ad03e6f870..b879cfdf2a 100644 --- a/accounts/abi/bind/v2/internal/contracts/db/bindings.go +++ b/accounts/abi/bind/v2/internal/contracts/db/bindings.go @@ -53,7 +53,7 @@ func NewDB() *DB { // 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 *DB) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // Get is a free data retrieval call binding the contract method 0x9507d39a. diff --git a/accounts/abi/bind/v2/internal/contracts/events/bindings.go b/accounts/abi/bind/v2/internal/contracts/events/bindings.go index e067531b51..634559875d 100644 --- a/accounts/abi/bind/v2/internal/contracts/events/bindings.go +++ b/accounts/abi/bind/v2/internal/contracts/events/bindings.go @@ -52,7 +52,7 @@ func NewC() *C { // 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 *C) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // DoSomethingWithManyArgs is a free data retrieval call binding the contract method 0x6fd8b968. diff --git a/accounts/abi/bind/v2/internal/contracts/nested_libraries/bindings.go b/accounts/abi/bind/v2/internal/contracts/nested_libraries/bindings.go index 291677af57..07fe47630a 100644 --- a/accounts/abi/bind/v2/internal/contracts/nested_libraries/bindings.go +++ b/accounts/abi/bind/v2/internal/contracts/nested_libraries/bindings.go @@ -50,7 +50,7 @@ func NewC1() *C1 { // 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 *C1) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } func (c1 *C1) PackConstructor(v1 *big.Int, v2 *big.Int) []byte { @@ -113,7 +113,7 @@ func NewC2() *C2 { // 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 *C2) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } func (c2 *C2) PackConstructor(v1 *big.Int, v2 *big.Int) []byte { @@ -172,7 +172,7 @@ func NewL1() *L1 { // 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 *L1) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // Do is a free data retrieval call binding the contract method 0x2ad11272. @@ -226,7 +226,7 @@ func NewL2() *L2 { // 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 *L2) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // Do is a free data retrieval call binding the contract method 0x2ad11272. @@ -280,7 +280,7 @@ func NewL2b() *L2b { // 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 *L2b) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // Do is a free data retrieval call binding the contract method 0x2ad11272. @@ -331,7 +331,7 @@ func NewL3() *L3 { // 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 *L3) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // Do is a free data retrieval call binding the contract method 0x2ad11272. @@ -386,7 +386,7 @@ func NewL4() *L4 { // 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 *L4) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // Do is a free data retrieval call binding the contract method 0x2ad11272. @@ -440,7 +440,7 @@ func NewL4b() *L4b { // 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 *L4b) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // Do is a free data retrieval call binding the contract method 0x2ad11272. diff --git a/accounts/abi/bind/v2/internal/contracts/solc_errors/bindings.go b/accounts/abi/bind/v2/internal/contracts/solc_errors/bindings.go index 3ebef4c0c6..1f6ed4eacb 100644 --- a/accounts/abi/bind/v2/internal/contracts/solc_errors/bindings.go +++ b/accounts/abi/bind/v2/internal/contracts/solc_errors/bindings.go @@ -46,7 +46,7 @@ func NewC() *C { // 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 *C) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // Bar is a free data retrieval call binding the contract method 0xb0a378b0. @@ -152,7 +152,7 @@ func NewC2() *C2 { // 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 *C2) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // Foo is a free data retrieval call binding the contract method 0xbfb4ebcf. diff --git a/accounts/abi/bind/v2/internal/contracts/uint256arrayreturn/bindings.go b/accounts/abi/bind/v2/internal/contracts/uint256arrayreturn/bindings.go index b831ae5f4a..d383a0783f 100644 --- a/accounts/abi/bind/v2/internal/contracts/uint256arrayreturn/bindings.go +++ b/accounts/abi/bind/v2/internal/contracts/uint256arrayreturn/bindings.go @@ -46,7 +46,7 @@ func NewMyContract() *MyContract { // 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 *MyContract) Instance(backend bind.ContractBackend, addr common.Address) bind.BoundContract { - return bind.NewContractInstance(backend, addr, c.abi) + return bind.NewBoundContract(backend, addr, c.abi) } // GetNums is a free data retrieval call binding the contract method 0xbd6d1007.