macro_rules! lease {
(address => $recipient:expr, $amount:expr) => { ... };
(alias => $recipient:expr, $amount:expr) => { ... };
}Expand description
Leasing of funds
§Result
The result of execution is &[u8] lease_id
§Usage
use we_cdk::*;
#[action]
fn _constructor() {
let recipient: Binary = base58!("3NzkzibVRkKUzaRzjUxndpTPvoBzQ3iLng3");
let amount: Integer = 100;
let lease_id_first: Binary = lease!(address => recipient, amount);
let lease_id_second: Binary = lease!(alias => "miner", amount);
}