-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
41 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,6 @@ docs/ | |
|
||
# Dotenv file | ||
.env | ||
|
||
.DS_Store | ||
zkout/ |
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
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,30 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity ^0.8.18; | ||
|
||
import {Test, console} from "forge-std/Test.sol"; | ||
import {ZkSyncChainChecker} from "lib/foundry-devops/src/ZkSyncChainChecker.sol"; | ||
import {FoundryZkSyncChecker} from "lib/foundry-devops/src/FoundryZkSyncChecker.sol"; | ||
|
||
contract ZkSyncDevOps is Test, ZkSyncChainChecker, FoundryZkSyncChecker { | ||
// Remove the `skipZkSync`, then run `forge test --mt testZkSyncChainFails --zksync` and this will fail! | ||
function testZkSyncChainFails() public skipZkSync { | ||
address ripemd = address(uint160(3)); | ||
|
||
bool success; | ||
// Don't worry about what this "assembly" thing is for now | ||
assembly { | ||
success := call(gas(), ripemd, 0, 0, 0, 0, 0) | ||
} | ||
assert(success); | ||
} | ||
|
||
// You'll need `ffi=true` in your foundry.toml to run this test | ||
// // Remove the `onlyVanillaFoundry`, then run `foundryup-zksync` and then | ||
// // `forge test --mt testZkSyncFoundryFails --zksync` | ||
// // and this will fail! | ||
// function testZkSyncFoundryFails() public onlyVanillaFoundry { | ||
// bool exists = vm.keyExistsJson('{"hi": "true"}', ".hi"); | ||
// assert(exists); | ||
// } | ||
} |