fix: cleanup

This commit is contained in:
rymnc 2024-05-29 20:17:07 +05:30
parent e27ff67f6e
commit eb05ee251c
No known key found for this signature in database
GPG Key ID: AAA088D5C68ECD34
3 changed files with 3 additions and 6 deletions

View File

@ -16,11 +16,6 @@
solc = "0.8.24"
src = "src"
test = "test"
ast = true
ffi = true
build_info = true
extra_output = ["storageLayout"]
fs_permissions = [{ access = "read", path = "./out"}]
[fuzz]
max_test_rejects = 128_000

View File

@ -35,7 +35,7 @@
"release": "commit-and-tag-version",
"adorno": "pnpm prettier:write && forge fmt && forge snapshot && pnpm gas-report",
"deploy:sepolia": "./envCheck.sh && FOUNDRY_PROFILE=sepolia forge script --chain sepolia script/Deploy.s.sol:Deploy --rpc-url $RPC_URL --broadcast --verify -vv --account $ACCOUNT --legacy --sender $ETH_FROM",
"deploy:cardona": "./envCheck.sh && FOUNDRY_PROFILE=cardona forge script script/Deploy.s.sol:Deploy --chain 2442 --rpc-url https://rpc.cardona.zkevm-rpc.com --broadcast --verify -vv --account $ACCOUNT --legacy --sender $ETH_FROM",
"deploy:cardona": "./envCheck.sh && FOUNDRY_PROFILE=cardona forge script --chain 2442 script/Deploy.s.sol:Deploy --rpc-url https://rpc.cardona.zkevm-rpc.com --broadcast --verify -vv --account $ACCOUNT --legacy --sender $ETH_FROM",
"deploy:localhost": "./envCheck.sh && forge script script/Deploy.s.sol:Deploy --rpc-url $RPC_URL --broadcast -vv --account $ACCOUNT --sender $ETH_FROM"
}
}

View File

@ -197,6 +197,8 @@ contract WakuRlnV2Test is Test {
Deploy deployment = new Deploy();
deployment.upgrade(address(w), newImplementation);
// ensure that the implementation is set correctly
// ref:
// https://github.com/OpenZeppelin/openzeppelin-foundry-upgrades/blob/4cd15fc50b141c77d8cc9ff8efb44d00e841a299/src/internal/Core.sol#L289
address fetchedImpl = address(
uint160(uint256(vm.load(address(w), 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc)))
);