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

Bugfixes #43

Merged
merged 11 commits into from
Mar 21, 2023
Merged

Bugfixes #43

merged 11 commits into from
Mar 21, 2023

Conversation

Divide-By-0
Copy link
Member

@Divide-By-0 Divide-By-0 commented Mar 21, 2023

  • DNS parsing of DKIM key rarely failed due to extra quotes, now fixed

  • Added notes to readmes about these failures

  • Either solidity tests failed or deploy failed, fixed via mega hack (thanks to comment below in support channel)

    I also had lots of issues with dynamic library linking not working for deploying contracts (and the same error with Dynamic linking not supported in create command when doing —libraries). when I tried to add libraries = [] to foundry.toml, all of my tests broke, so this was the only solution that worked for me instead (ugly i know but it seems to be the only way to do it in foundry, idk why libraries in .toml and —libraries operate so differently):

    forge create --rpc-url $ETH_RPC_URL LIB1 --private-key $SK --via-ir --force | tee /dev/tty | export LIB1_ADDR=$(sed -n 's/.*Deployed to: //p')

    forge create --rpc-url $ETH_RPC_URL LIB2 --private-key $SK --via-ir --force | tee /dev/tty | export LIB2_ADDR=$(sed -n 's/.*Deployed to: //p')

    echo "libraries = ["src/LIB1.sol:LIB1:${LIB1_ADDR}", "src/LIB2.sol:LIB2:${LIB2_ADDR}"]" >> foundry.toml

    forge create --rpc-url $ETH_RPC_URL MainContract --private-key $SK --libraries LIB2:$LIB2_ADDR,LIB1:$LIB1_ADDR --via-ir --force | tee /dev/tty | export MAINCONTRACT_ADDR=$(sed -n 's/.*Deployed to: //p')

    sed -i '' -e '$ d' foundry.toml

@Divide-By-0 Divide-By-0 merged commit 2852fac into main Mar 21, 2023
@Divide-By-0 Divide-By-0 deleted the bugfixes branch March 31, 2023 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant