diff --git a/quickstart-template/trade-assets.js b/quickstart-template/trade-assets.js index 510a6980..440f1cdc 100644 --- a/quickstart-template/trade-assets.js +++ b/quickstart-template/trade-assets.js @@ -9,7 +9,11 @@ let wallet = await Wallet.create({ networkId: Coinbase.networks.BaseMainnet }); * Fund the Wallet's default Address with ETH from an external source. * Trade 0.00001 ETH to USDC. */ -let trade = await wallet.createTrade(0.00001, Coinbase.assets.Eth, Coinbase.assets.Usdc); +let trade = await wallet.createTrade({ + amount: 0.00001, + fromAssetId: Coinbase.assets.Eth, + toAssetId: Coinbase.assets.Usdc, +}); // Wait for the trade to complete or fail on-chain. await trade.wait();