Skip to content

Commit

Permalink
fix: Changed mistyped token balance to transaction amount in `mirai_w…
Browse files Browse the repository at this point in the history
…eb3`
  • Loading branch information
i-asimkhan committed Feb 22, 2024
1 parent 8465a67 commit 82b9dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mirai_web3/lib/services/web_modal_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class Web3ModalService {
TransactionDetails(
senderAddress: (result[0] as EthereumAddress).hex,
receiverAddress: (result[1] as EthereumAddress).hex,
amount: contractToken.balance
amount: (result[2] as BigInt)
.toAmountInDouble(contractToken.decimals),
received: (result[1] as EthereumAddress).hex ==
connectedWalletAddress,
Expand Down

0 comments on commit 82b9dfb

Please sign in to comment.