This level will guide you through how to play the Fuelnaut game.
help()
in the console to see a full list of helper variables and functions. attack_success
function returns true
. For this level, you'll have to call the hello_world
function to set the value
variable in the storage block to true
. instance
variable to call the hello_world
function. (Hint: take a look at the fuels
TypeScript docs ). contract;
abi MyContract {
#[storage(write)]
fn hello_world();
#[storage(read)]
fn attack_success() -> bool;
}
storage {
value: bool = false,
}
impl MyContract for Contract {
#[storage(write)]
fn hello_world(){
storage.value.write(true);
}
#[storage(read)]
fn attack_success() -> bool{
storage.value.read()
}
}