From 5d09aa316f6b2c78463a2784b3ff1b0905b2d15b Mon Sep 17 00:00:00 2001 From: Mobin Mohanan <47410557+tr1sm0s1n@users.noreply.github.com> Date: Fri, 12 Sep 2025 15:44:47 +0530 Subject: [PATCH] accounts/abi/bind/v2: add Address method to BoundContract (#32559) --- accounts/abi/bind/v2/base.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/accounts/abi/bind/v2/base.go b/accounts/abi/bind/v2/base.go index 535c0ed4fd..f714848efb 100644 --- a/accounts/abi/bind/v2/base.go +++ b/accounts/abi/bind/v2/base.go @@ -150,6 +150,11 @@ func NewBoundContract(address common.Address, abi abi.ABI, caller ContractCaller } } +// Address returns the deployment address of the contract. +func (c *BoundContract) Address() common.Address { + return c.address +} + // Call invokes the (constant) contract method with params as input values and // sets the output to result. The result type might be a single field for simple // returns, a slice of interfaces for anonymous returns and a struct for named