In one of the examples (I tried with flipper), replace None in the deploy_bundle with Some(1_000) (any number that makes sense, less than INIT_BALANCE), the test will throw ContractTrapped on execution.
This feels strange to me because the provided endowment was much less than the INIT_BALANCE of the default actor, so it must work. Below is the error thrown:
running 2 tests
test tests::initialization ... FAILED
test tests::flipping ... ok
failures:
---- tests::initialization stdout ----
Error: DeploymentFailed(Module(ModuleError { index: 3, error: [12, 0, 0, 0], message: Some("ContractTrapped") }))
How to reproduce?
In one of the examples (I tried with
flipper
), replaceNone
in thedeploy_bundle
withSome(1_000)
(any number that makes sense, less thanINIT_BALANCE
), the test will throwContractTrapped
on execution.This feels strange to me because the provided endowment was much less than the
INIT_BALANCE
of the default actor, so it must work. Below is the error thrown: