accounts/abi/bind/v2: regenerate test contract bindings

go generate ./... was out of date after adding GetABI() to the abigen
v2 template; regenerate the fixture bindings so CI's check_generate
step passes.
This commit is contained in:
Juan Franco 2026-06-30 19:33:24 -04:00
parent 08a7d96c65
commit 132f3faa1a
5 changed files with 65 additions and 0 deletions

View file

@ -43,6 +43,11 @@ type DB struct {
abi abi.ABI
}
// GetABI returns the ABI associated with this contract binding.
func (c *DB) GetABI() abi.ABI {
return c.abi
}
// NewDB creates a new instance of DB.
func NewDB() *DB {
parsed, err := DBMetaData.ParseABI()

View file

@ -36,6 +36,11 @@ type C struct {
abi abi.ABI
}
// GetABI returns the ABI associated with this contract binding.
func (c *C) GetABI() abi.ABI {
return c.abi
}
// NewC creates a new instance of C.
func NewC() *C {
parsed, err := CMetaData.ParseABI()

View file

@ -40,6 +40,11 @@ type C1 struct {
abi abi.ABI
}
// GetABI returns the ABI associated with this contract binding.
func (c *C1) GetABI() abi.ABI {
return c.abi
}
// NewC1 creates a new instance of C1.
func NewC1() *C1 {
parsed, err := C1MetaData.ParseABI()
@ -118,6 +123,11 @@ type C2 struct {
abi abi.ABI
}
// GetABI returns the ABI associated with this contract binding.
func (c *C2) GetABI() abi.ABI {
return c.abi
}
// NewC2 creates a new instance of C2.
func NewC2() *C2 {
parsed, err := C2MetaData.ParseABI()
@ -192,6 +202,11 @@ type L1 struct {
abi abi.ABI
}
// GetABI returns the ABI associated with this contract binding.
func (c *L1) GetABI() abi.ABI {
return c.abi
}
// NewL1 creates a new instance of L1.
func NewL1() *L1 {
parsed, err := L1MetaData.ParseABI()
@ -257,6 +272,11 @@ type L2 struct {
abi abi.ABI
}
// GetABI returns the ABI associated with this contract binding.
func (c *L2) GetABI() abi.ABI {
return c.abi
}
// NewL2 creates a new instance of L2.
func NewL2() *L2 {
parsed, err := L2MetaData.ParseABI()
@ -322,6 +342,11 @@ type L2b struct {
abi abi.ABI
}
// GetABI returns the ABI associated with this contract binding.
func (c *L2b) GetABI() abi.ABI {
return c.abi
}
// NewL2b creates a new instance of L2b.
func NewL2b() *L2b {
parsed, err := L2bMetaData.ParseABI()
@ -384,6 +409,11 @@ type L3 struct {
abi abi.ABI
}
// GetABI returns the ABI associated with this contract binding.
func (c *L3) GetABI() abi.ABI {
return c.abi
}
// NewL3 creates a new instance of L3.
func NewL3() *L3 {
parsed, err := L3MetaData.ParseABI()
@ -450,6 +480,11 @@ type L4 struct {
abi abi.ABI
}
// GetABI returns the ABI associated with this contract binding.
func (c *L4) GetABI() abi.ABI {
return c.abi
}
// NewL4 creates a new instance of L4.
func NewL4() *L4 {
parsed, err := L4MetaData.ParseABI()
@ -515,6 +550,11 @@ type L4b struct {
abi abi.ABI
}
// GetABI returns the ABI associated with this contract binding.
func (c *L4b) GetABI() abi.ABI {
return c.abi
}
// NewL4b creates a new instance of L4b.
func NewL4b() *L4b {
parsed, err := L4bMetaData.ParseABI()

View file

@ -36,6 +36,11 @@ type C struct {
abi abi.ABI
}
// GetABI returns the ABI associated with this contract binding.
func (c *C) GetABI() abi.ABI {
return c.abi
}
// NewC creates a new instance of C.
func NewC() *C {
parsed, err := CMetaData.ParseABI()
@ -173,6 +178,11 @@ type C2 struct {
abi abi.ABI
}
// GetABI returns the ABI associated with this contract binding.
func (c *C2) GetABI() abi.ABI {
return c.abi
}
// NewC2 creates a new instance of C2.
func NewC2() *C2 {
parsed, err := C2MetaData.ParseABI()

View file

@ -36,6 +36,11 @@ type MyContract struct {
abi abi.ABI
}
// GetABI returns the ABI associated with this contract binding.
func (c *MyContract) GetABI() abi.ABI {
return c.abi
}
// NewMyContract creates a new instance of MyContract.
func NewMyContract() *MyContract {
parsed, err := MyContractMetaData.ParseABI()