Macro we_cdk::block

source ·
macro_rules! block {
    (timestamp) => { ... };
    (height) => { ... };
}
Expand description

Get block fields

§Usage

use we_cdk::*;

#[action]
fn _constructor() {
    let block_timestamp: Integer = block!(timestamp);
    let block_height: Integer = block!(height);
}