Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Mar 22, 2024
1 parent d75f189 commit ff7a12d
Show file tree
Hide file tree
Showing 7 changed files with 311 additions and 174 deletions.
4 changes: 2 additions & 2 deletions contracts/test/ERC20SwapTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ contract ERC20SwapTest is Test {
sigUtils = new SigUtils(swap.DOMAIN_SEPARATOR(), swap.TYPEHASH_REFUND());
}

function testCorrectVersion() external {
function testCorrectVersion() external view {
assertEq(swap.version(), 3);
}

Expand All @@ -49,7 +49,7 @@ contract ERC20SwapTest is Test {
require(!success);
}

function testHashSwapValues() external {
function testHashSwapValues() external view {
uint256 timelock = block.number;

assertEq(
Expand Down
4 changes: 2 additions & 2 deletions contracts/test/EtherSwapTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ contract EtherSwapTest is Test {

receive() payable external {}

function testCorrectVersion() external {
function testCorrectVersion() external view {
assertEq(swap.version(), 3);
}

Expand All @@ -44,7 +44,7 @@ contract EtherSwapTest is Test {
require(!success);
}

function testHashSwapValues() external {
function testHashSwapValues() external view {
uint256 timelock = block.number;

assertEq(
Expand Down
2 changes: 1 addition & 1 deletion lib/swap/SwapDetector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const detectSwap = <
vout,
type: scriptMatch[0],
...output,
} as DetectedSwap<T>;
} as unknown as DetectedSwap<T>;
}
}

Expand Down
Empty file added lib/swap/SwapTreeCompare.ts
Empty file.
Loading

0 comments on commit ff7a12d

Please sign in to comment.