⌘K
main
script; use std::logging::log; fn main(foo: u8) -> u8 { log(__to_str_array("u8 foo")); log(foo); foo }
callScript
ScriptFactory
const foo = 33; const scriptInstance = new Script<BigNumberish[], BigNumberish>(scriptBin, scriptAbi, wallet); const { value, logs } = await scriptInstance.functions.main(foo).call();