-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
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
Storage Limit issues #23
Comments
The issue seems to be the inconsistent default values assigned to
Both scripts use the same deploy script which passes a value of The substrate deploy succeeds whereas the substrate-contracts-node fails with It doesn't seem to make any difference as I increase the sent value. It always fails with the same error. The highest value I tried was To reproduce, you can clone our smart contract repo and run the deploy script with substrate-contracts-node built with default values of
You can either use latest contracts node (1ab14fe) or clone the forked node which is updated to paritytech/substrate@7409589. The error appears on both.
However, there is a caveat that we are using a slightly modified version of ink that allows for |
Does the error also happen with the unmodified substrate node (the man if you just use |
The error does not happen with the unmodified substrate repo. I've outlined what I've tested below.
Clearly this could be further narrowed down by checking substrate with the initial balances as |
I thought I'd solved this by using the substrate node but it seems I get the same error after running a few contract functions, eventually hitting the limit. I added some debug to substrate to see what's going on when storage deposit limit is specified as
I'm not sure what the number If I manually set the storage_deposit_limit to anything larger than
TLDR: it could be an issue with the API and not the substrate contracts node. |
The confusion was caused by the differing initial balances for Alice etc. After this was taken into consideration, it turns out I can send a large enough initial deposit to my account by passing the number through e.g. send a large initial deposit to my testing account |
This node seems to not work with the recent changes surrounding storage limits.
When uploading contracts the following error is received:
contracts.StorageDepositLimitExhausted(More storage was created than allowed by the storage deposit limit.)
A normal substrate node started with
cargo run --release -- --dev --tmp -lerror,runtime::contracts=debug
works using the same configuration of polkadotjs and deploy script.I have even upgraded the substrate contracts node to a recent substrate commit to see if that was the issue but it still fails on deployment.
https://github.com/prosopo-io/substrate-contracts-node/tree/storage_deposit_limit (Synced to paritytech/substrate@7409589)
I can create a PR for this if you like.
polkadot-js versions:
The text was updated successfully, but these errors were encountered: