accounts/abi/bind/v2: add Address method to BoundContract

This commit is contained in:
tr1sm0s1n 2025-09-09 12:54:22 +05:30
parent 2a3f4cea13
commit 9bde491991
No known key found for this signature in database
GPG key ID: BC64CB662BFBBFE4

View file

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