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

Install jq 1.7 to handle large gwei balance #588

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Hecate2
Copy link

@Hecate2 Hecate2 commented Jul 19, 2024

Related to #586 .

Many factory deployment actions fail because too many ethers are sent to the bot's account. For example, I sent 10^19 gwei in https://github.com/safe-global/safe-singleton-factory/actions/runs/10001624545/job/27645578947 , and the bash script thinks I have -8446744073709551616 gwei, where 10^19 + 8446744073709551616 == 2^64. The reason may be...

deployer_address_balance=$(( $(echo "$deployer_address_balance" | jq -r '.result') ))

The bash tool jq cannot handle numbers larger than 2^63 correctly.
jqlang/jq#1959 (comment)
jq 1.7 fixed the problem
actions/runner-images#9550 (comment)
But github actions is not willing to upgrade jq to 1.7 .

I have not tested this pull request.

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