Agoric / dapp-orchestration-basics

Agoric Orchestration Sample dApp
4 stars 4 forks source link

`make fund` results in `Error: key with address not found` #90

Open 0xpatrickdev opened 1 week ago

0xpatrickdev commented 1 week ago

When following the current README's make fund step, I see Error: key with address agoric125d8s0tamx50gpqdd3m7f5gtkzkcnjs0ehsujr not found: key not found.

This is because agd tx swingset provision-one wallet requires that the provisionee is the caller, and agoric125d8s0tamx50gpqdd3m7f5gtkzkcnjs0ehsujr is not in the keyring of the docker container.

Expected Behavior

I suggest we do some combination of:

  1. put a TEST_MNEMONIC var in the Makefile, and ensure we do agd keys add --keyring-backend=test --interactive to add it.

  2. Put the MNEMONIC in the README, so devs can add it to keplr and use the UI

A better (higher effort) approach:

  1. Add faucet functionality to the UI

  2. Add smart wallet provisioning to the UI

0xpatrickdev commented 1 week ago

A workaround for now is:

yes "bunker give suggest edit supply paper follow myself smoke elephant injury equal" | kubectl exec -i agoriclocal-genesis-0 -c validator -- agd keys add danKey --interactive --recover

{"name":"danKey","type":"local","address":"agoric1yf4uwauecsmw6uu44sa8nsulfh6xc40kdu83v9","pubkey":"{\"@type\":\"/cosmos.crypto.secp256k1.PubKey\",\"key\":\"A2e0/kuWPbStz2ESMocRuIM3rFAWbCFXEFL9V4DeFlFp\"}"}

Where bunker... is a test mnemonic