Set default gas limit for send transactions to 100k

This commit is contained in:
Simon Warta
2022-02-09 22:38:44 +01:00
parent 4ca659272b
commit 9e7adb2c2b
7 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ async function main() {
const client = await SigningStargateClient.connectWithSigner(rpcUrl, wallet, { prefix: prefix });
const recipient = Bech32.encode(prefix, Random.getBytes(20));
const amount = coins(226644, "ucosm");
const fee = calculateFee(200_000, "0.025ucosm");
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);
assertIsDeliverTxSuccess(sendResult);