-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #825 from etherisc/feature/chainid-type-refactoring
use ChainId type instead of uint (#823)
- Loading branch information
Showing
9 changed files
with
73 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.20; | ||
|
||
import {ChainId} from "../../contracts/type/ChainId.sol"; | ||
import {StdAssertions} from "forge-std/StdAssertions.sol"; | ||
|
||
contract GifTestHelper is StdAssertions { | ||
|
||
function assertEqChainId(ChainId chainId1, ChainId chainId2) public pure { | ||
assertEq(chainId1.toInt(), chainId2.toInt(), "ChainId not equal"); | ||
} | ||
|
||
function assertEqChainId(ChainId chainId1, ChainId chainId2, string memory err) public pure { | ||
assertEq(chainId1.toInt(), chainId2.toInt(), err); | ||
} | ||
|
||
} |
Oops, something went wrong.