Rename postTx -> broadcastTx in launchpad/cosmwasm etc

This commit is contained in:
Simon Warta
2020-08-03 17:23:05 +02:00
parent 3a5c23c2e8
commit 5dcaf706dd
33 changed files with 224 additions and 203 deletions
+7 -2
View File
@@ -3,7 +3,12 @@
/* eslint-disable @typescript-eslint/naming-convention */
const { Random } = require("@cosmjs/crypto");
const { Bech32 } = require("@cosmjs/encoding");
const { coins, Secp256k1Wallet, SigningCosmosClient, assertIsPostTxSuccess } = require("@cosmjs/launchpad");
const {
coins,
Secp256k1Wallet,
SigningCosmosClient,
assertIsBroadcastTxSuccess,
} = require("@cosmjs/launchpad");
const httpUrl = "http://localhost:1317";
const faucet = {
@@ -19,7 +24,7 @@ async function main() {
const amount = coins(226644, "ucosm");
const memo = "Ensure chain has my pubkey";
const sendResult = await client.sendTokens(recipient, amount, memo);
assertIsPostTxSuccess(sendResult);
assertIsBroadcastTxSuccess(sendResult);
}
main().then(