safe-singleton-factory
safe-singleton-factory copied to clipboard
Install jq 1.7 to handle large gwei balance
Related to https://github.com/safe-global/safe-singleton-factory/issues/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... https://github.com/safe-global/safe-singleton-factory/blob/4da1be4b62cdafca027d940b78f9994677277f6c/.github/scripts/validate_new_chain_request.sh#L183 The bash tool jq cannot handle numbers larger than 2^63 correctly. https://github.com/jqlang/jq/issues/1959#issuecomment-1712175933 jq 1.7 fixed the problem https://github.com/actions/runner-images/issues/9550#issuecomment-2017696786 But github actions is not willing to upgrade jq to 1.7 .
I have not tested this pull request.