Function std::call_frames::msg_asset_id
pub fn msg_asset_id() -> AssetId
Expand description
Get the asset_id
of coins being sent from the current call frame.
Returns
- [AssetId] - The asset included in the current call frame.
Examples
use std::call_frames::msg_asset_id;
fn foo() {
let asset = msg_asset_id();
assert(asset == AssetId::base());
}