-
Notifications
You must be signed in to change notification settings - Fork 61
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
Create PredictoorHelper and add submitTruevals function #800
Create PredictoorHelper and add submitTruevals function #800
Conversation
} | ||
|
||
function submitTruevals( | ||
address contract_addr, |
Check warning
Code scanning / Slither
Conformance to Solidity naming conventions Warning
can you also add it to deploy-contracts script please? |
function submitTruevalContracts( | ||
address[] calldata contract_addrs, | ||
uint256[][] calldata epoch_starts, | ||
bool[][] calldata trueVals, |
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.
why do we have double [] ?
It should be one-dimensional array
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.
An array of arguments for each contract address
can we keep it simple, with one-dimensional arrays ? |
Co-authored-by: Alex Coseru <alex.coseru@gmail.com>
} | ||
|
||
contract PredictoorHelper { | ||
address admin; |
Check warning
Code scanning / Slither
State variables that could be declared immutable Warning
To clarify, there are two functions: submitTruevals function submits multiple truevals for one contract. (one dimensional) submitTruevalContracts function submits truevals for multiple contracts. (two dimensional - one per each contract) Both are external functions. |
Co-authored-by: Alex Coseru <alex.coseru@gmail.com>
025280e
into
issue797-remove-floatvalue-from-predictoor-contract
Fixes #799
Changes proposed in this PR: