Skip to content

Commit

Permalink
Ignore paymountAmount in log because it can differ based on via-IR
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincheng96 committed Apr 26, 2024
1 parent 346e2c6 commit 5fd1684
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/quark-core-scripts/Paycall.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ contract PaycallTest is Test {

// gas: meter execute
vm.resumeGasMetering();
vm.expectEmit(true, true, true, true);
vm.expectEmit(true, true, true, false); // We ignore the amount because it will differ based on via-IR
emit PayForGas(address(wallet), tx.origin, USDC, 7_264_471);
wallet.executeQuarkOperation(op, v, r, s);

Expand Down Expand Up @@ -212,7 +212,7 @@ contract PaycallTest is Test {

// gas: meter execute
vm.resumeGasMetering();
vm.expectEmit(true, true, true, true);
vm.expectEmit(true, true, true, false); // We ignore the amount because it will differ based on via-IR
emit PayForGas(address(wallet), tx.origin, USDC, 7_489_695);
wallet.executeQuarkOperation(op, v, r, s);

Expand Down Expand Up @@ -273,7 +273,7 @@ contract PaycallTest is Test {

// gas: meter execute
vm.resumeGasMetering();
vm.expectEmit(true, true, true, true);
vm.expectEmit(true, true, true, false); // We ignore the amount because it will differ based on via-IR
emit PayForGas(address(wallet), tx.origin, USDC, 18_045_902);
wallet.executeQuarkOperation(op, v, r, s);

Expand Down Expand Up @@ -345,7 +345,7 @@ contract PaycallTest is Test {
(uint8 v, bytes32 r, bytes32 s) = new SignatureHelper().signOp(alicePrivateKey, wallet, op);

vm.resumeGasMetering();
vm.expectEmit(true, true, true, true);
vm.expectEmit(true, true, true, false); // We ignore the amount because it will differ based on via-IR
emit PayForGas(address(wallet), tx.origin, USDT, 7_056_836);
wallet.executeQuarkOperation(op, v, r, s);

Expand Down Expand Up @@ -383,7 +383,7 @@ contract PaycallTest is Test {
(uint8 v, bytes32 r, bytes32 s) = new SignatureHelper().signOp(alicePrivateKey, wallet, op);

vm.resumeGasMetering();
vm.expectEmit(true, true, true, true);
vm.expectEmit(true, true, true, false); // We ignore the amount because it will differ based on via-IR
emit PayForGas(address(wallet), tx.origin, WBTC, 20_332);
wallet.executeQuarkOperation(op, v, r, s);

Expand Down Expand Up @@ -446,7 +446,7 @@ contract PaycallTest is Test {

// gas: meter execute
vm.resumeGasMetering();
vm.expectEmit(true, true, true, true);
vm.expectEmit(true, true, true, false); // We ignore the amount because it will differ based on via-IR
emit PayForGas(address(wallet), tx.origin, USDC, 5_553_259);
wallet.executeQuarkOperation(op, v, r, s);

Expand Down

0 comments on commit 5fd1684

Please sign in to comment.