take_right

Macro take_right 

Source
macro_rules! take_right {
    ($bytes:expr, $n:expr) => { ... };
}
Expand description

Returns a string/binary without the last N characters/bytes

ยงUsage

use we_cdk::*;

#[action]
fn _constructor() {
    let result: Binary = take_right!(&[0, 1, 2, 3, 4, 5], 1);
}