pub fn balance() -> u64
Expand description
Get the amount of units of call_frames::msg_asset_id()
being sent.
Returns
- [u64] - The forwarded coins in the context.
Examples
use std::register::balance;
fn foo() {
let bal = balance();
assert(bal == 0);
}