You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
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 theflip()
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
andContract 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:The text was updated successfully, but these errors were encountered: