Skip to content

Commit

Permalink
Merge pull request #215 from blackbeard002/value
Browse files Browse the repository at this point in the history
Changed the value from uint56 to uint256
  • Loading branch information
0xneves authored May 9, 2024
2 parents 8adf3a0 + b46209e commit e1832ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/Swaplace.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ contract Swaplace is SwapFactory, ISwaplace, IERC165 {
uint256 swapId = _totalSwaps;
_swaps[swapId] = swap;

(address allowed, , uint8 recipient, uint56 value) = decodeConfig(
(address allowed, , uint8 recipient, uint256 value) = decodeConfig(
swap.config
);

Expand All @@ -72,7 +72,7 @@ contract Swaplace is SwapFactory, ISwaplace, IERC165 {
address allowed,
uint32 expiry,
uint8 recipient,
uint56 value
uint256 value
) = decodeConfig(swap.config);

if (allowed != address(0) && allowed != msg.sender) revert InvalidAddress();
Expand Down Expand Up @@ -100,7 +100,7 @@ contract Swaplace is SwapFactory, ISwaplace, IERC165 {
Swap memory swap = _swaps[swapId];
if (swap.owner != msg.sender) revert InvalidAddress();

(, uint32 expiry, uint8 recipient, uint56 value) = decodeConfig(
(, uint32 expiry, uint8 recipient, uint256 value) = decodeConfig(
swap.config
);

Expand Down

0 comments on commit e1832ed

Please sign in to comment.