Skip to content
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

StorageDepositLimitExhausted. More storage was created than allowed by the storage deposit limit using Contracts Rococo #1107

Open
ltfschoen opened this issue May 10, 2023 · 1 comment

Comments

@ltfschoen
Copy link

ltfschoen commented May 10, 2023

In this repo https://github.com/ltfschoen/InkTest I followed the steps shown in my README up to this step https://github.com/ltfschoen/InkTest/blame/main/README.md#L68 where I ran cargo contract upload --suri //Alice.

Then I deployed it on Contracts Rococo by going to https://contracts-ui.substrate.io/?rpc=wss://rococo-contracts-rpc.polkadot.io.

Before I uploaded and instantiated it, it said:

RefTime Limit 341378826
ProofSize Limit 100
GasConsumed refTime: 156961873 proofSize: 0
GasRequired refTime: 341378826 proofSize: 0
Storage Deposit: 4.2375 ROC

It also said The instantiation will be successful

Then on the next page still before I'd uploaded and instantiated it, it said:

Weight was 341,378,826

The it showed a toaster showing it was successful, but it disappeared too fast for me to read it, which was annoying.

Then I recall it gave an error StorageDepositLimitExhausted. More storage was created than allowed by the storage deposit limit., which I thought was because I did't have enough balance to pay the required storage deposits, even though I've got 99 ROC from the faucet, but earlier it said it estimated the storage deposit to only be 4.2375 ROC and that should have already been paid since it seemed to be successful. But may be was because it was on the contract's "Interact" page and was calculating how much it'd need to call the flip() function, since that error was shown when it was showing the following estimates:
GasConsumed refTime: 664976000 proofSize: 14456
GasRequired refTime: 6029312000 proofSize: 131072
when the message to send was flip()

But then when I go back to https://contracts-ui.substrate.io/?rpc=wss://rococo-contracts-rpc.polkadot.io, it now lists the DApp that it deployed even though it gave that error before https://contracts-ui.substrate.io/contract/5EmVfbRC3ghEsGg5FzhG4N8dxkLwxjZpPjutfTAnRhDSP8dR, and instead of the error it says: Storage deposit charge 0 and Contract call will be successful!

Also how can I determine how much ROC I'll need to pay for the gas mentioned in those estimates so I may upload/deploy the contract on Rococo?

Does it cost ~100,000,000 Gas per 1 ROC?

If I deploy the same contract locally, with cargo contract upload --suri //Alice --execute it outputs:

      Events
       Event Balances ➜ Withdraw
         who: 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
         amount: 2.142696855mUNIT
       Event Balances ➜ Reserved
         who: 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
         amount: 434.79mUNIT
       Event Contracts ➜ CodeStored
         code_hash: 0xa0c52cd7843da761236263923f454d5860db1794855de29396cc9908c58bd4b9
       Event TransactionPayment ➜ TransactionFeePaid
         who: 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
         actual_fee: 2.142696855mUNIT
         tip: 0UNIT
       Event System ➜ ExtrinsicSuccess
         dispatch_info: DispatchInfo { weight: Weight { ref_time: 2142684257, proof_size: 3574 }, class: Normal, pays_fee: Yes }
@SkymanOne
Copy link
Contributor

This is an issue related to the contracts-ui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants