Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tough-goats-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fuels-wallet": minor
---

Lowercase "To" address before comparing with assetId in TransferAssets.tsx to ensure consistency.
2 changes: 1 addition & 1 deletion packages/docs/examples/assets/TransferAssets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down