Rename Secp256k1Wallet -> Secp256k1HdWallet
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
const { SigningCosmWasmClient } = require("@cosmjs/cosmwasm");
|
||||
const { Secp256k1Wallet } = require("@cosmjs/launchpad");
|
||||
const { Secp256k1HdWallet } = require("@cosmjs/launchpad");
|
||||
const fs = require("fs");
|
||||
|
||||
const httpUrl = "http://localhost:1317";
|
||||
@@ -134,7 +134,7 @@ const initDataJade = {
|
||||
};
|
||||
|
||||
async function main() {
|
||||
const wallet = await Secp256k1Wallet.fromMnemonic(alice.mnemonic);
|
||||
const wallet = await Secp256k1HdWallet.fromMnemonic(alice.mnemonic);
|
||||
const client = new SigningCosmWasmClient(httpUrl, alice.address0, wallet);
|
||||
|
||||
const wasm = fs.readFileSync(__dirname + "/contracts/cw-erc20.wasm");
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
const { SigningCosmWasmClient } = require("@cosmjs/cosmwasm");
|
||||
const { Secp256k1Wallet } = require("@cosmjs/launchpad");
|
||||
const { Secp256k1HdWallet } = require("@cosmjs/launchpad");
|
||||
const fs = require("fs");
|
||||
|
||||
const httpUrl = "http://localhost:1317";
|
||||
@@ -36,7 +36,7 @@ const luxury = {
|
||||
};
|
||||
|
||||
async function main() {
|
||||
const wallet = await Secp256k1Wallet.fromMnemonic(alice.mnemonic);
|
||||
const wallet = await Secp256k1HdWallet.fromMnemonic(alice.mnemonic);
|
||||
const client = new SigningCosmWasmClient(httpUrl, alice.address0, wallet);
|
||||
|
||||
const wasm = fs.readFileSync(__dirname + "/contracts/cw-nameservice.wasm");
|
||||
|
||||
@@ -5,7 +5,7 @@ const { Random } = require("@cosmjs/crypto");
|
||||
const { Bech32 } = require("@cosmjs/encoding");
|
||||
const {
|
||||
coins,
|
||||
Secp256k1Wallet,
|
||||
Secp256k1HdWallet,
|
||||
SigningCosmosClient,
|
||||
assertIsBroadcastTxSuccess,
|
||||
} = require("@cosmjs/launchpad");
|
||||
@@ -18,7 +18,7 @@ const faucet = {
|
||||
};
|
||||
|
||||
async function main() {
|
||||
const wallet = await Secp256k1Wallet.fromMnemonic(faucet.mnemonic);
|
||||
const wallet = await Secp256k1HdWallet.fromMnemonic(faucet.mnemonic);
|
||||
const client = new SigningCosmosClient(httpUrl, faucet.address0, wallet);
|
||||
const recipient = Bech32.encode("cosmos", Random.getBytes(20));
|
||||
const amount = coins(226644, "ucosm");
|
||||
|
||||
Reference in New Issue
Block a user