Macro scrypto::i

source · []
macro_rules! i {
    ($x:expr) => { ... };
}
Expand description

Creates a safe integer from literals. You must specify the type of the integer you want to create.

Example

use scrypto::prelude::*;

let a: I256 = i!(21);
let b: U512 = i!("1156");