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
@@ -113,7 +113,7 @@ export async function main(originalArgs: readonly string[]): Promise<void> {
"OfflineSigner",
"PubKey",
"pubkeyToAddress",
"Secp256k1Wallet",
"Secp256k1HdWallet",
"SigningCosmosClient",
"StdFee",
"StdSignDoc",
@@ -160,7 +160,7 @@ export async function main(originalArgs: readonly string[]): Promise<void> {
assert(Decimal.fromAtomics("12870000", 6).toString() === "12.87");
const mnemonic = Bip39.encode(Random.getBytes(16)).toString();
const wallet = await Secp256k1Wallet.fromMnemonic(mnemonic, makeCosmoshubPath(0));
const wallet = await Secp256k1HdWallet.fromMnemonic(mnemonic, makeCosmoshubPath(0));
const [{ address }] = await wallet.getAccounts();
const data = toAscii("foo bar");
const fee: StdFee = {