Agoric / dapp-offer-up

Offer Up is a simple Dapp for the Agoric smart contract platform that permits users to explore items for sale in a marketplace
6 stars 5 forks source link

silent failure on insufficient IST when installing bundles #60

Open dckc opened 10 months ago

dckc commented 10 months ago

Sometimes yarn start:contract seems to do its thing, but then in the node logs, we see...

2024-01-24T23:35:57.700Z SwingSet: xsnap: v10: Error: bundleID not yet installed: b1-1b1b49dc4e7354d5dedb6681b72b372d85b7cfbfecaf1b459bc0b28a3cd739fc6b81bacf199d25e5bb9cd83a6aa7b91943c3629b23a2eecfdfebeb4895d6fe26

Then if we scroll waaaay back in the yarn start:contract terminal, we find that agd tx swingset install-bundle failed with insufficient funds:

agd tx swingset install-bundle --compress @/root/.agoric/cache/b1-d60605da4f3462e0cd27ed520b52c6ed173ecdd62fe7b21e13b25cb6264ac139a77b15daff4582f7d330d5af7f67403622b2905daec439bade02eba2cb97e20b.json --from user1 --keyring-backend=test --gas=auto --gas-adjustment=1.2 --chain-id=agoriclocal -bblock --yes -o json
gas estimate: 24001647
{"height":"0","txhash":"F7EED0924AC723C327AB34F4785DABE9635F5BDD5967F7F5A89DA1424CC17592","codespace":"sdk","code":20,"data":"","raw_log":"controller refused message admission: 1650000uist is smaller than 12000000uist: insufficient funds: mempool is full","logs":[],"info":"","gas_wanted":"24001647","gas_used":"1764529","tx":null,"timestamp":"","events":[]}

Note in particular code":20. Any code other than 0 is an error that we should signal loudly.

earlier discussion: https://github.com/Agoric/dapp-offer-up/issues/44#issuecomment-1909133138

cc @0xpatrickdev