Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add gas snaps for swaps with 1155 as input/output #383

Merged
merged 4 commits into from
Nov 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add gas prefix
  • Loading branch information
zhongeric committed Nov 3, 2023
commit ba5ed7003db09341187e79d98a57405ca79013b1
4 changes: 2 additions & 2 deletions test/foundry-tests/PoolManager.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ contract PoolManagerTest is Test, Deployers, TokenFixture, GasSnapshot, IERC1155
snapEnd();
}

function testSwapMintERC1155IfOutputNotTaken() public {
function testGasSwapMintERC1155IfOutputNotTaken() public {
PoolKey memory key =
PoolKey({currency0: currency0, currency1: currency1, fee: 3000, hooks: IHooks(address(0)), tickSpacing: 60});

Expand All @@ -827,7 +827,7 @@ contract PoolManagerTest is Test, Deployers, TokenFixture, GasSnapshot, IERC1155
assertEq(erc1155Balance, 98);
}

function testSwapUse1155AsInput() public {
function testGasSwapUse1155AsInput() public {
PoolKey memory key =
PoolKey({currency0: currency0, currency1: currency1, fee: 3000, hooks: IHooks(address(0)), tickSpacing: 60});

Expand Down