Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Commit

Permalink
fix(cli): update wallet factory calls (#1690)
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian committed Jun 3, 2021
1 parent 4ec2438 commit b339569
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/platform-sdk-cli/src/commands/create-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const createWallet = async (profile: Contracts.IProfile): Promise<void> =
}

profile.wallets().push(
await profile.walletFactory().fromMnemonic({
await profile.walletFactory().fromMnemonicWithBIP39({
mnemonic,
coin: asset[0],
network: asset[1],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const transferFundsWithARK = async (env: Environment): Promise<void> => {

// Create read-write wallet #1
const mnemonic1: string = "super secure password";
const wallet1 = await profile.walletFactory().fromMnemonic({
const wallet1 = await profile.walletFactory().fromMnemonicWithBIP39({
mnemonic: mnemonic1,
coin: "ARK",
network: "ark.testnet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const createProfileWithWallets = async (env: Environment): Promise<void>

// Create read-write wallet #1
const mnemonic1: string = "super secure password";
const wallet1 = await profile.walletFactory().fromMnemonic({
const wallet1 = await profile.walletFactory().fromMnemonicWithBIP39({
mnemonic: mnemonic1,
coin: "ARK",
network: "ark.mainnet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const transferFundsWithTRX = async (env: Environment): Promise<void> => {

// Create read-write wallet 1
const mnemonic1: string = "cabin fold parrot grunt tide exact spoon regular wait mercy very fame";
const wallet1 = await profile.walletFactory().fromMnemonic({
const wallet1 = await profile.walletFactory().fromMnemonicWithBIP39({
mnemonic: mnemonic1,
coin: "TRX",
network: "trx.testnet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const listTransactionsWithXLM = async (env: Environment): Promise<void> =

// Create read-write wallet 1
const mnemonic1: string = "stand adapt injury old donate champion sword slice exhibit mimic chair body";
const wallet1 = await profile.walletFactory().fromMnemonic({
const wallet1 = await profile.walletFactory().fromMnemonicWithBIP39({
mnemonic: mnemonic1,
coin: "XLM",
network: "xlm.testnet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const signMessageWithXLM = async (env: Environment): Promise<void> => {

// Create read-write wallet 1
const mnemonic1: string = "stand adapt injury old donate champion sword slice exhibit mimic chair body";
const wallet1 = await profile.walletFactory().fromMnemonic({
const wallet1 = await profile.walletFactory().fromMnemonicWithBIP39({
mnemonic: mnemonic1,
coin: "XLM",
network: "xlm.testnet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const transferFundsWithXLM = async (env: Environment): Promise<void> => {

// Create read-write wallet 1
const mnemonic1: string = "stand adapt injury old donate champion sword slice exhibit mimic chair body";
const wallet1 = await profile.walletFactory().fromMnemonic({
const wallet1 = await profile.walletFactory().fromMnemonicWithBIP39({
mnemonic: mnemonic1,
coin: "XLM",
network: "xlm.testnet",
Expand Down

0 comments on commit b339569

Please sign in to comment.