pub fn second_param() -> u64 
Expand description

Get the second parameter from the current call frame.

Additional Information

More information on data from call frames can be found in the Fuel Specs.
https://specs.fuel.network/master/fuel-vm/index.html?search=#call-frames

Returns

  • [u64] - The second parameter of the current call frame.

Examples

use std::call_frames::second_param;

fn foo() {
    let param: u64 = second_param();
    assert(param != 0);
}