We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mapping::insert()
When trying to use a message contains Mapping::insert() in E2E test, the test errors at dry-run stage for this specific function.
substrate-contracts-node V0.21.0
substrate-contracts-node --dev -linfo,runtime::contracts=debug
RUST_LOG=debug cargo test
*** 2022-11-09T16:02:34Z INFO ink_e2e] [test: insert_and_get_works] call: [E8, 8D, 16, 46, 01, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00] [2022-11-09T16:02:34Z INFO ink_e2e] [test: insert_and_get_works] call dry run: Err(Module(ModuleError { index: 7, error: 25, message: None })) [2022-11-09T16:02:34Z INFO ink_e2e] [test: insert_and_get_works] call dry run debug message: test mappings::e2e_tests::insert_and_get_works ... FAILED failures: ---- mappings::e2e_tests::insert_and_get_works stdout ---- thread 'mappings::e2e_tests::insert_and_get_works' panicked at 'call failed: CallDryRun', lib.rs:117:18 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace failures: mappings::e2e_tests::insert_and_get_works test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.23s error: test failed, to rerun pass '--lib' ***
Module error that the message refers to is StorageDepositLimitExhausted
StorageDepositLimitExhausted
Mapping::take()
storage_limit
cargo-contract
E2E
The text was updated successfully, but these errors were encountered:
Which node do you run against (which version)? Just asking for proper reproduction. Not that I think that it actually broke in the node.
Sorry, something went wrong.
Updated the description to indicate the node version
Mapping
Successfully merging a pull request may close this issue.
Summary
When trying to use a message contains
Mapping::insert()
in E2E test, the test errors at dry-run stage for this specific function.Reproducer
substrate-contracts-node V0.21.0
-substrate-contracts-node --dev -linfo,runtime::contracts=debug
RUST_LOG=debug cargo test
Module error that the message refers to is
StorageDepositLimitExhausted
Edge cases
Mapping::take()
does not cause the problem, so it is definitely to do something with the function.storage_limit
has no effectcargo-contract
and PolkadotJS app do not result in errorcargo-contract
andE2E
crate seem to be the same.The text was updated successfully, but these errors were encountered: