Skip to content

Commit 5d09aa3

Browse files
authored
accounts/abi/bind/v2: add Address method to BoundContract (#32559)
1 parent 25d6596 commit 5d09aa3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

accounts/abi/bind/v2/base.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ func NewBoundContract(address common.Address, abi abi.ABI, caller ContractCaller
150150
}
151151
}
152152

153+
// Address returns the deployment address of the contract.
154+
func (c *BoundContract) Address() common.Address {
155+
return c.address
156+
}
157+
153158
// Call invokes the (constant) contract method with params as input values and
154159
// sets the output to result. The result type might be a single field for simple
155160
// returns, a slice of interfaces for anonymous returns and a struct for named

0 commit comments

Comments
 (0)