Skip to content

Commit

Permalink
Merge pull request #84 from coinbase/chore/updating-console-log-usage…
Browse files Browse the repository at this point in the history
…-in-examples

Console.log usage in the examples folder
  • Loading branch information
erdimaden authored Jun 24, 2024
2 parents 05e9f92 + 0f90bd5 commit cc8bd78
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/examples/fund_wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ async function fundWallet() {

// Fund the wallet with a faucet transaction.
const faucetTransaction = await wallet.faucet();
console.log(`Faucet transaction successfully completed: ${faucetTransaction}`);
console.log(`Faucet transaction successfully completed: `, faucetTransaction);
}

fundWallet();
2 changes: 1 addition & 1 deletion src/examples/trade_assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ async function tradeAssets() {
// Fund the wallet's default address with ETH from an external source.
// Trade 0.00001 ETH to USDC
const trade = await wallet.createTrade(0.00001, Coinbase.assets.Eth, Coinbase.assets.Usdc);
console.log(`Trade successfully completed: ${trade}`);
console.log(`Trade successfully completed: `, trade);
}

tradeAssets();
2 changes: 1 addition & 1 deletion src/examples/transfer_funds.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async function transferFunds() {
// Then, we can transfer 0.00001 ETH out of the Wallet to another Wallet.
// The wallet object should have funds to create a transfer.
const transfer = await wallet.createTransfer(0.00001, Coinbase.assets.Eth, anotherWallet);
console.log(`Transfer successfully completed: ${transfer}`);
console.log(`Transfer successfully completed: `, transfer);
}

transferFunds();

0 comments on commit cc8bd78

Please sign in to comment.