Function get_contract_balance
Source pub fn get_contract_balance<T>(addr: Address) -> Result<U256>
Expand description
Returns the balance of a contract.
§Note
This returns the same as env::api::balance
if given the contract
address of the currently executed smart contract.
§Errors
- If
contract
does not exist.