-
Notifications
You must be signed in to change notification settings - Fork 38
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
Clean up contracts #3
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why contracts were moved from contracts/
to contracts/contracts/
(seems unnecessary/confusing and introduces a diff that is not really a change).
Additionally left some nits/questions.
checkpoint = keccak256(abi.encode(checkpoint, _validators[i], _powers[i])); | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function will return without error even if fed an empty validator set - is that intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, don't see why not.
Note for reviewers: tests are expected to fail catastrophically since the contract is changed but not the orchestrator. |
Ah OK. If you want we can also merge this only after I submit a PR against this branch to fix the tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me!
I feel a bit uncomfortable merging this with all the failing tests but I think it's OK to do so if we fix those in the following days.
BTW, Failing actions are: |
Main contract: https://github.com/celestiaorg/quantum-gravity-bridge/blob/adlerjohn/contract_mods/ethereum/solidity/contracts/QuantumGravityBridge.sol
Original main contract: https://github.com/celestiaorg/quantum-gravity-bridge/blob/b5ba246f23f89c43adf764e2e3f804b4a9f3beb0/solidity/contracts/Peggy.sol