We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On the latest anvil devchain canary version calling getDistributableAmount and getTargetCeloDistribution on CeloDistributionSchedule reverts.
getDistributableAmount
getTargetCeloDistribution
CeloDistributionSchedule
Assuming that anvil is running on port 8545 and with l2-devchain.json state loaded.
8545
l2-devchain.json
$ cast call \ "0x000000000000000000000000000000000000ce10" \ "getAddressForStringOrDie(string calldata identifier)(address)" \ "CeloDistributionSchedule" 0xA16cF67AFa80BB9Ce7a325597F80057c6B290fD4
$ cast call "0xA16cF67AFa80BB9Ce7a325597F80057c6B290fD4" "getDistributableAmount()(uint256)" Error: server returned an error response: error code 3: execution reverted: panic: arithmetic underflow or overflow (0x11)
$ cast call "0xA16cF67AFa80BB9Ce7a325597F80057c6B290fD4" "getTargetCeloDistribution()(uint256,uint256,uint256)" Error: server returned an error response: error code 3: execution reverted: panic: arithmetic underflow or overflow (0x11)
That results in a ContractKit's CeloDistributionScheduleWrapper test failing.
Calling the methods should not revert.
The text was updated successfully, but these errors were encountered:
A fix for this is included with a description in:
For context:
Released a test version of the devchain to NPM using the protocol-devchain-anvil workflow trigger (see screenshot): I suggest this PR gets merged if and when @shazarre confirmed the bug is fixed on his side using the test version.
Released a test version of the devchain to NPM using the protocol-devchain-anvil workflow trigger (see screenshot):
I suggest this PR gets merged if and when @shazarre confirmed the bug is fixed on his side using the test version.
Source: #11176 (review)
Sorry, something went wrong.
No branches or pull requests
Current Behavior
On the latest anvil devchain canary version calling
getDistributableAmount
andgetTargetCeloDistribution
onCeloDistributionSchedule
reverts.Steps to reproduce
Assuming that anvil is running on port
8545
and withl2-devchain.json
state loaded.That results in a ContractKit's CeloDistributionScheduleWrapper test failing.
Expected Behavior
Calling the methods should not revert.
The text was updated successfully, but these errors were encountered: