Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use fixed version of solc when use contractsgen script #125

Merged
merged 2 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ MiniEVM is an optimistic rollup consumer chain powered by EVM, designed to simpl
## Prerequisites

- Go v1.22.7+
- (optional) [solc-select](https://github.com/crytic/solc-select) v1.0.4+ (used in contractsgen.sh)

## Getting Started

Expand Down
4 changes: 3 additions & 1 deletion scripts/contractsgen.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
set -e
beer-1 marked this conversation as resolved.
Show resolved Hide resolved
BUILD_DIR=build
CONTRACTS_DIR=x/evm/contracts
VERSION="0.8.25"
solc-select use $VERSION --always-install
for CONTRACT_HOME in $CONTRACTS_DIR/*; do
if [ -d "$CONTRACT_HOME" ]; then
PKG_NAME=$(basename $CONTRACT_HOME)
Expand All @@ -8,7 +11,6 @@ for CONTRACT_HOME in $CONTRACTS_DIR/*; do
echo $CONTRACT_PATH
CONTRACT_NAME=$(basename $CONTRACT_PATH .sol)
echo $CONTRACT_HOME $PKG_NAME $CONTRACT_PATH $CONTRACT_NAME

solc $CONTRACT_PATH --bin --abi -o $BUILD_DIR --overwrite
abigen --pkg $PKG_NAME \
--bin=$BUILD_DIR/$CONTRACT_NAME.bin \
Expand Down
Loading