pub fn first_param() -> u64 
Expand description

Get the first parameter from the current call frame.

Additional Information

More information on data from call frames can be found in the Fuel Specs.
https://docs.fuel.network/docs/specs/fuel-vm/#call-frames

Returns

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

Examples

use std::call_frames::first_param;

fn foo() {
    let param = first_param();
    assert(param != 0);
}