From 5077832ebf8782cb314cbf27ba745bc391ecff92 Mon Sep 17 00:00:00 2001 From: Nils Olav <92005151+0xNilsOlav@users.noreply.github.com> Date: Tue, 5 Oct 2021 23:06:30 -0400 Subject: [PATCH 1/2] Airdrop to `id` address before mint setup To avoid error detailed in [this issue](https://github.com/paul-schaaf/solana-escrow/issues/6) --- scripts/src/setup.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/src/setup.ts b/scripts/src/setup.ts index 243f286..042f0cf 100644 --- a/scripts/src/setup.ts +++ b/scripts/src/setup.ts @@ -63,6 +63,8 @@ const setup = async () => { await connection.requestAirdrop(alicePublicKey, LAMPORTS_PER_SOL * 10); console.log("Requesting SOL for Bob..."); await connection.requestAirdrop(bobPublicKey, LAMPORTS_PER_SOL * 10); + console.log("Requesting SOL for Id..."); + await connection.requestAirdrop(bobPublicKey, LAMPORTS_PER_SOL * 10); const [mintX, aliceTokenAccountForX, bobTokenAccountForX] = await setupMint( "X", From c6ff5d6f0455bb372c1eade84c1f89cc80986a6f Mon Sep 17 00:00:00 2001 From: Nils Olav <92005151+0xNilsOlav@users.noreply.github.com> Date: Wed, 6 Oct 2021 09:36:53 -0400 Subject: [PATCH 2/2] Fix copypasta --- scripts/src/setup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/src/setup.ts b/scripts/src/setup.ts index 042f0cf..b11f4fb 100644 --- a/scripts/src/setup.ts +++ b/scripts/src/setup.ts @@ -64,7 +64,7 @@ const setup = async () => { console.log("Requesting SOL for Bob..."); await connection.requestAirdrop(bobPublicKey, LAMPORTS_PER_SOL * 10); console.log("Requesting SOL for Id..."); - await connection.requestAirdrop(bobPublicKey, LAMPORTS_PER_SOL * 10); + await connection.requestAirdrop(IdPublicKey, LAMPORTS_PER_SOL * 10); const [mintX, aliceTokenAccountForX, bobTokenAccountForX] = await setupMint( "X",