Rename Secp256k1Wallet -> Secp256k1HdWallet

This commit is contained in:
Simon Warta
2020-10-08 10:29:41 +02:00
parent 26a3684fe8
commit eba148326a
29 changed files with 126 additions and 121 deletions
+2 -2
View File
@@ -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");