macro_rules! tx {
(tx_id) => { ... };
(sender) => { ... };
(sender_public_key) => { ... };
}Expand description
Get tx fields
ยงUsage
use we_cdk::*;
#[action]
fn _constructor() {
let tx_id: Binary = tx!(tx_id);
let tx_sender: Binary = tx!(sender);
let tx_sender_public_key: Binary = tx!(sender_public_key);
}