From 7c69d03a88213066823719ae27d84cb16bea8731 Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Sun, 21 Sep 2025 18:55:42 +0800 Subject: [PATCH] accounts/abi/bind/v2: add Address method to BoundContract #32559 (#1518) Co-authored-by: Mobin Mohanan <47410557+tr1sm0s1n@users.noreply.github.com> --- 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 54209cdb51..f9817a810d 100644 --- a/accounts/abi/bind/v2/base.go +++ b/accounts/abi/bind/v2/base.go @@ -149,6 +149,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