From 9bde491991ae1163daf4b8fb838c2f1b3d72628a Mon Sep 17 00:00:00 2001 From: tr1sm0s1n Date: Tue, 9 Sep 2025 12:54:22 +0530 Subject: [PATCH] accounts/abi/bind/v2: add Address method to BoundContract --- 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