Skip to content

Commit 53b9ef4

Browse files
committed
revert: drop unrelated swap debug change accidentally included
The previous commit swept in an in-progress USDT approve(0) debug patch (`0xdeadbeef` tx data) that is unrelated to this PR. Restore the file to match develop.
1 parent 581a3e3 commit 53b9ef4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

apps/hooks-internal/src/swap/amount.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -751,12 +751,11 @@ export class SwapAmountConfig extends AmountConfig {
751751
const hexValue = txData.value.startsWith("0x")
752752
? txData.value
753753
: `0x${BigInt(txData.value).toString(16)}`;
754-
// const hexData = txData.data.startsWith("0x")
755-
// ? txData.data
756-
// : `0x${txData.data}`;
754+
const hexData = txData.data.startsWith("0x")
755+
? txData.data
756+
: `0x${txData.data}`;
757757

758-
// TODO: TEMPORARY - Corrupt swap tx data for USDT approve(0) testing. Remove after test.
759-
const tx = account.makeTx(txData.to, hexValue, "0xdeadbeef");
758+
const tx = account.makeTx(txData.to, hexValue, hexData);
760759

761760
return {
762761
...tx,

0 commit comments

Comments
 (0)