From 0f90bd5d82da43363742e01913c51efb3cc1f745 Mon Sep 17 00:00:00 2001 From: Erdi Maden Date: Mon, 24 Jun 2024 16:03:33 -0500 Subject: [PATCH] Updating Console.log usage in examples --- src/examples/fund_wallet.js | 2 +- src/examples/trade_assets.js | 2 +- src/examples/transfer_funds.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/examples/fund_wallet.js b/src/examples/fund_wallet.js index 81677403..930e8358 100644 --- a/src/examples/fund_wallet.js +++ b/src/examples/fund_wallet.js @@ -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(); diff --git a/src/examples/trade_assets.js b/src/examples/trade_assets.js index ef79e1ab..6fe3a4f0 100644 --- a/src/examples/trade_assets.js +++ b/src/examples/trade_assets.js @@ -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(); diff --git a/src/examples/transfer_funds.js b/src/examples/transfer_funds.js index f01f2f09..05f3c966 100644 --- a/src/examples/transfer_funds.js +++ b/src/examples/transfer_funds.js @@ -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();