#Storage Instance

6 messages · Page 1 of 1 (latest)

placid shale
#

I have received error when i’m trying to get value from:

storage().instance()

I’m trying to set value in one fn and receive from another fn.

In test this function is passed, all
works as i expected.

But in terminal when i invoke contract and call my fn I have received Error(WasmVm, InvalidAction).

I have checked that problem connected with panic, I guess error connected with unwrap object in storage.

How to avoid it and test correctly in testnet. Have i missed smth important?

arctic turret
#

this is kind of a blanket error for anything that had gone wrong in your Wasm (unfortunately, we can't report what exactly is wrong). one random guess would be that you pass the inputs incorrectly via CLI and your contract fails decoding them. but something else could be wrong as well. more info would help - your contract and your CLI commandline

placid shale
arctic turret
#

are you sure you want to user symbol there? I'm not sure if --name "a" actually expects symbol and not just a regular String...

nimble quartzBOT
placid shale
#

@arctic turret to be honest, there wasn’t problem w/ cli.

It was my bad, all works as expected ❤️