-
Notifications
You must be signed in to change notification settings - Fork 427
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
feat: connector v1.3 review #88
base: master
Are you sure you want to change the base?
Conversation
Regarding this, in the future, it may make more sense to do any stylistic refactors first, and merge them in, as it pollutes the code review, and can enter a review hypnosis where what I'm thinking are stylistic changes may be real code changes. |
oraclizeAPI_0.4.25.sol
Outdated
modifier oraclizeAPI { | ||
if((address(OAR)==0)||(getCodeSize(address(OAR))==0)) | ||
oraclize_setNetwork(networkID_auto); | ||
|
||
if(address(oraclize) != OAR.getAddress()) | ||
oraclize = OraclizeI(OAR.getAddress()); | ||
|
||
oraclizeBytes = OraclizeIBytes(OAR.getAddress()); |
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.
can save some ops by just doing = address(oraclize)
here, no?
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.
Ahh wait yes, because the line before ensures oraclize
is set. Good spot!
ping @gskapka |
Agreed re the stylistic changes btw. Didn't mean to accidentally do both in tandem, but I did :/ Will ensure to separate the two concerns in future if both sorts of changes are needed. Have pushed all the fixes to the above comments. |
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.
Additional points needing addressing
59ee890
to
0082e85
Compare
LGTM as of 6a0b495 rest please review as well |
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.
Of your commits, I couldn't approve of the specifier order consistency more! Wohoo!
So yeah, LGTM too.
Have given @riccardopersiani an in-person overview of the changes because if you look at the diffs for the whole branch, they don't even load due to their size! It's given him a fighting chance at a review though & he's on it.
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.
Review still need to be finished
Changes per @riccardopersiani review pushed & include: ✔️ All 24 ✔️ All comments made re stylistic changes pertaining to |
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.
LGTM
In need of rebase (draft #94) TODOs post-rebase
|
...which also makes the visibility specifiers & fxn modifiers easier to see.
Now users can query prices for their (or others') contracts!
...since it's free w/r/t compile size if functions go unused.
... & also cleans up the natspec comments surrounding the various overload types.
... & also update the natspec comments to make the API easier to navigate.
reverting changes I requested for consistency with 0.5 and previous iterations
a8371e4
to
3d358e4
Compare
rebased and matches #94 |
also includes various fixes/consistency unto oraclize apis
Only commit 35d8933 should need review @riccardopersiani If there is anything questionable, please mention and request review from @gskapka in addition |
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.
Added just very small notes.
For the rest LGTM. Good job!
courtesy @riccardopersiani Co-Authored-By: Riccardo Persiani <[email protected]>
resolved |
No description provided.