Skip to content

Commit

Permalink
Merge pull request #185 from blackbeard002/gas
Browse files Browse the repository at this point in the history
 refactor: Set the value of config as zero directly instead of packing allowed and expiry in the acceptSwap(). #184
  • Loading branch information
0xneves authored Jan 26, 2024
2 parents f9a1a26 + 19b0074 commit 0115342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/Swaplace.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ contract Swaplace is SwapFactory, ISwaplace, IERC165 {

if (expiry < block.timestamp) revert InvalidExpiry(expiry);

_swaps[swapId].config = packData(allowed, 0);
_swaps[swapId].config = 0;

Asset[] memory assets = swap.asking;

Expand Down

0 comments on commit 0115342

Please sign in to comment.