#Cargo test faild with HostError

6 messages · Page 1 of 1 (latest)

vapid sage
#

failures:

---- test::test stdout ----
thread 'test::test' panicked at 'HostError
Value: Status(HostContextError(NoContractRunning))
"escalating error '' to panic"

feral grove
#

Without the code is hard to know the real reason but I have the feeling that you're trying to access the env storage outside of a contract

#

I feel I got a similar error when I tried to do that at some point

vapid sage
#

This is my test fn

feral grove