sdk38: Rename Secp256k1OfflineWallet -> Secp256k1Wallet

This commit is contained in:
willclarktech
2020-07-14 14:35:12 +02:00
parent 0561dd5dd5
commit 21f083336e
28 changed files with 82 additions and 89 deletions
+2 -2
View File
@@ -100,7 +100,7 @@ export function main(originalArgs: readonly string[]): void {
"OfflineSigner",
"PubKey",
"pubkeyToAddress",
"Secp256k1OfflineWallet",
"Secp256k1Wallet",
"SigningCosmosClient",
"StdFee",
"StdTx",
@@ -145,7 +145,7 @@ export function main(originalArgs: readonly string[]): void {
assert(Decimal.fromAtomics("12870000", 6).toString() === "12.87");
const mnemonic = Bip39.encode(Random.getBytes(16)).toString();
const wallet = await Secp256k1OfflineWallet.fromMnemonic(mnemonic, makeCosmoshubPath(0));
const wallet = await Secp256k1Wallet.fromMnemonic(mnemonic, makeCosmoshubPath(0));
const [{ address }] = await wallet.getAccounts();
const data = toAscii("foo bar");
const signature = await wallet.sign(address, data);