accounts/abi/bind/v2: add Address method to BoundContract #32559 (#1518)

Co-authored-by: Mobin Mohanan <47410557+tr1sm0s1n@users.noreply.github.com>
This commit is contained in:
Daniel Liu 2025-09-21 18:55:42 +08:00 committed by GitHub
parent 1a2c8ee180
commit 7c69d03a88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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