-
Notifications
You must be signed in to change notification settings - Fork 164
Setup script fails due to id
balance 0
#6
Comments
To avoid error detailed in [this issue](paul-schaaf#6)
hi @0xNilsOlav, thank you for the issue and PR! However, I'm not able to reproduce this. What system are you on? Have you run |
Ah, that makes sense - I started the validator manually and then ran I'm on an M1 mac and needed to build from source with the 1.7 branch because of that, so needed to run |
Some background on how I got to this point: I started by trying to use the UI in the guide (which is why I had started the test validator manually) and thought I had everything set up correctly, but got the error below and didn't know what to do with that so thought I'd try the script instead.
(the guide is awesome, btw - really great introduction to programming on Solana!) |
@0xNilsOlav I merged your PR but I'm still gonna keep the initialization in the script as well. If you dont want initialization, you can just use the Have you managed to find the cause of the error with the help of the scripts? |
I have the same problem with my mac m1, because there is something wrong with solana-test-validator, so i use devnet. I use 'solana airdrop instruction' get sol for id, alice and bob first, and use 'solana program deploy' instruction load solana_escrow.so program. Because of escrow program id changed, so replace keys/program_pub.json with the pubkey of deploy/solana_escrow-keypair.json. Finally, change setup.ts,alice.ts,bob.ts connection with https://api.devnet.solana.com, delete setup.ts requestAirdrop instruction. npm run setup --> npm run alice --> npm run bob. |
Thanks for the feedback @weihwork , I'm adjusting the code so it can be used on different clusters along with some other changes to make you do less work |
To avoid error detailed in [this issue](paul-schaaf/solana-escrow#6)
Currently the setup script is failing with the following log output:
Script runs successfully after airdropping sol to the
id
public key address, so think the fix is to add anotherrequestAirdrop
to that address before creating the mint.The text was updated successfully, but these errors were encountered: