multiversx / mx-sdk-rs

🦀 MultiversX SpaceCraft framework for Rust. Contains: a smart contract framework; a complete smart contract build solution; a large collection of example smart contracts; a testing framework and debugger (including a VM model); real blockchain interaction; various other tools.
GNU General Public License v3.0
178 stars 98 forks source link

DebuggerBackend panics when an account is not found #1267

Open gfusee opened 1 year ago

gfusee commented 1 year ago

It makes catching error very difficult to do, it obliges developers to rewind the stack (not a good practice)

To reproduce: perform a call to an unknown address in a ScenarioWorld

gfusee commented 1 year ago

moreover, it's important to note that panicking poisons Mutex, making even harder to catch errors