We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56ca284 commit 862b93dCopy full SHA for 862b93d
ui/ducks/send/send.js
@@ -12,6 +12,7 @@ import {
12
TransactionEnvelopeType,
13
TransactionType,
14
} from '@metamask/transaction-controller';
15
+import { toHex } from '@metamask/controller-utils';
16
import { getErrorMessage } from '../../../shared/modules/error';
17
import {
18
decimalToHex,
@@ -2731,9 +2732,7 @@ export function updateSendAsset(
2731
2732
2733
if (isCurrentOwner) {
2734
asset.error = null;
- asset.balance = details.balance
2735
- ? addHexPrefix(details.balance)
2736
- : '0x1';
+ asset.balance = details.balance ? toHex(details.balance) : '0x1';
2737
} else {
2738
throw new Error(
2739
'Send slice initialized as NFT send with an NFT not currently owned by the select account',
0 commit comments