From 188bb1ff3f902ec3b581f98a2720259d4447425b Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Wed, 28 Feb 2024 19:33:18 +0100 Subject: [PATCH] Restore first send --- scripts/wasmd/send_first.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/wasmd/send_first.js b/scripts/wasmd/send_first.js index e8a397c2..c54204a5 100755 --- a/scripts/wasmd/send_first.js +++ b/scripts/wasmd/send_first.js @@ -15,15 +15,15 @@ const rpcUrl = "http://localhost:26659"; const prefix = "wasm"; const faucet = { mnemonic: - "flat ski gap size ankle rifle congress month nice state follow mechanic produce cube moment boss enlist disorder during logic brother ride erosion member", - address0: "wasm100xecaptkwqaq6e53s8zxf2vkzz47n6swseykt", + "economy stock theory fatal elder harbor betray wasp final emotion task crumble siren bottom lizard educate guess current outdoor pair theory focus wife stone", + address0: "wasm1pkptre7fdkl6gfrzlesjjvhxhlc3r4gm32kke3", }; async function main() { const wallet = await DirectSecp256k1HdWallet.fromMnemonic(faucet.mnemonic, { prefix: prefix }); const client = await SigningStargateClient.connectWithSigner(rpcUrl, wallet, { prefix: prefix }); - const recipient = "wasm14qemq0vw6y3gc3u3e0aty2e764u4gs5lndxgyk"; - const amount = coins(500000000, "ucosm"); + const recipient = toBech32(prefix, Random.getBytes(20)); + const amount = coins(226644, "ucosm"); const fee = calculateFee(100_000, "0.025ucosm"); const memo = "Ensure chain has my pubkey"; const sendResult = await client.sendTokens(faucet.address0, recipient, amount, fee, memo);