Skip to content

Commit

Permalink
chore(test): bump solc to 0.26.0 (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
elfedy authored Jul 23, 2024
1 parent 3b58be8 commit baab5e6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion zk-tests/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ src = 'src'
out = 'out'
libs = ['lib']
fs_permissions = [{ access = "read", path = "./zkout/ConstantNumber.sol/ConstantNumber.json"}]
evm_version = "paris"

[fuzz]
no_zksync_reserved_addresses = true
Expand Down
2 changes: 1 addition & 1 deletion zk-tests/src/ConstantNumber.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.20;
pragma solidity ^0.8.20;

contract ConstantNumber {
function ten() public pure returns (uint8) {
Expand Down
2 changes: 1 addition & 1 deletion zk-tests/src/LargeContracts.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.20;
pragma solidity ^0.8.20;

/**
String generated via the following JS code:
Expand Down
8 changes: 4 additions & 4 deletions zk-tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -o pipefail -e

REPO_ROOT=".."
SOLC_VERSION=${SOLC_VERSION:-"v0.8.20"}
SOLC_VERSION=${SOLC_VERSION:-"v0.8.26"}
SOLC="solc-${SOLC_VERSION}"
FORGE="${REPO_ROOT}/target/release/forge"
CAST="${REPO_ROOT}/target/release/cast"
Expand Down Expand Up @@ -142,14 +142,14 @@ RUST_LOG=warn "${FORGE}" script ./script/Deploy.s.sol:DeployScript --broadcast -
# RUST_LOG=warn "${FORGE}" script ./src/LargeFactoryDependencies.t.sol:ZkLargeFactoryDependenciesScript --broadcast --private-key "$PRIVATE_KEY" --chain 260 --gas-estimate-multiplier 310 --rpc-url "$RPC_URL" --use "./${SOLC}" --slow -vvv --zk-startup || fail "forge script failed"

echo "Running NFT script"
RUST_LOG=warn "${FORGE}" script ./script/NFT.s.sol:MyScript --broadcast --private-key $PRIVATE_KEY --rpc-url $RPC_URL --use 0.8.20 --zk-startup || fail "forge script failed"
RUST_LOG=warn "${FORGE}" script ./script/NFT.s.sol:MyScript --broadcast --private-key $PRIVATE_KEY --rpc-url $RPC_URL --use 0.8.26 --zk-startup || fail "forge script failed"

echo "Running Proxy script"
RUST_LOG=warn "${FORGE}" script ./script/Proxy.s.sol:ProxyScript --broadcast --private-key $PRIVATE_KEY --rpc-url $RPC_URL --use 0.8.20 --zk-startup || fail "forge proxy script failed"
RUST_LOG=warn "${FORGE}" script ./script/Proxy.s.sol:ProxyScript --broadcast --private-key $PRIVATE_KEY --rpc-url $RPC_URL --use 0.8.26 --zk-startup || fail "forge proxy script failed"

# Deploy ERC20
echo "Deploying MyToken..."
MYTOKEN_DEPLOYMENT=$(RUST_LOG=warn "${FORGE}" create ./src/ERC20.sol:MyToken --rpc-url $RPC_URL --private-key $PRIVATE_KEY --use 0.8.20 --zk-startup) || fail "forge script failed"
MYTOKEN_DEPLOYMENT=$(RUST_LOG=warn "${FORGE}" create ./src/ERC20.sol:MyToken --rpc-url $RPC_URL --private-key $PRIVATE_KEY --use 0.8.26 --zk-startup) || fail "forge script failed"
MYTOKEN_ADDRESS=$(echo $MYTOKEN_DEPLOYMENT | awk '/Deployed to:/ {for (i=1; i<=NF; i++) if ($i == "to:") print $(i+1)}')
echo "MyToken deployed at: $MYTOKEN_ADDRESS"

Expand Down

0 comments on commit baab5e6

Please sign in to comment.