diff --git a/.changeset/tough-goats-press.md b/.changeset/tough-goats-press.md new file mode 100644 index 0000000000..0db2c212e1 --- /dev/null +++ b/.changeset/tough-goats-press.md @@ -0,0 +1,5 @@ +--- +"fuels-wallet": minor +--- + +Lowercase "To" address before comparing with assetId in TransferAssets.tsx to ensure consistency. diff --git a/packages/docs/examples/assets/TransferAssets.tsx b/packages/docs/examples/assets/TransferAssets.tsx index 828ca0260e..51d0dda580 100644 --- a/packages/docs/examples/assets/TransferAssets.tsx +++ b/packages/docs/examples/assets/TransferAssets.tsx @@ -54,7 +54,7 @@ export function TransferAssets() { // Create a Wallet instance from the current account const wallet = await fuel.getWallet(account); // Create a Address instance to the receiver address - const toAddress = Address.fromString(receiverAddress); + const toAddress = Address.fromString(receiverAddress.toLowerCase()); // Send a transaction to transfer the asset to the receiver address const response = await wallet.transfer(toAddress, amount, assetId, { gasLimit: 5_000,