Skip to content

Commit 97745fa

Browse files
committed
Remove unnecessary code in send transaction edit function
1 parent ef50c58 commit 97745fa

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

ui/ducks/send/send.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,27 +2229,6 @@ export function signTransaction() {
22292229
),
22302230
};
22312231

2232-
// If, after edit, we are sending the native asset,
2233-
// and if the send duck hex data was reset on this edit,
2234-
// and if the hex data from the tx's background state matches
2235-
// one of the special token methods that we handle,
2236-
// then we conclude that the user does not want to send hex data,
2237-
// and ensure it gets reset in the background state as well.
2238-
const sendingNativeAsset =
2239-
draftTransaction.asset.type === ASSET_TYPES.NATIVE;
2240-
const userInputHexDataHasBeenReset =
2241-
draftTransaction.userInputHexData === '';
2242-
const priorHexDataMatchesSpecialTokenTxSignatures =
2243-
parseStandardTokenTransactionData(editingTx.txParams.data) !==
2244-
undefined;
2245-
if (
2246-
sendingNativeAsset &&
2247-
userInputHexDataHasBeenReset &&
2248-
priorHexDataMatchesSpecialTokenTxSignatures
2249-
) {
2250-
editingTx.txParams.data = '';
2251-
}
2252-
22532232
await dispatch(
22542233
addHistoryEntry(
22552234
`sendFlow - user clicked next and transaction should be updated in controller`,

0 commit comments

Comments
 (0)