Skip to content

Commit

Permalink
refactor(style): code review suggestions
Browse files Browse the repository at this point in the history
courtesy @riccardopersiani

Co-Authored-By: Riccardo Persiani <[email protected]>
  • Loading branch information
D-Nice and riccardopersiani authored Jul 5, 2019
1 parent 35d8933 commit 211b7b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions oraclizeAPI_0.4.25.sol
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ contract usingOraclize {
OraclizeIBytes oraclizeBytes;

modifier oraclizeAPI {
if((address(OAR)==0)||(getCodeSize(address(OAR))==0))
if((address(OAR) == 0) || (getCodeSize(address(OAR)) == 0))
oraclize_setNetwork(networkID_auto);

address oraclizeConnector = OAR.getAddress();
Expand All @@ -366,12 +366,12 @@ contract usingOraclize {
_;
}

function oraclize_setNetwork(uint8 networkID) internal returns(bool){
function oraclize_setNetwork(uint8 networkID) internal returns(bool) {
return oraclize_setNetwork();
networkID; // silence the warning and remain backwards compatible
}
function oraclize_setNetwork() internal returns(bool){
if (getCodeSize(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed)>0){ //mainnet
function oraclize_setNetwork() internal returns(bool) {
if (getCodeSize(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed) > 0) { //mainnet
OAR = OraclizeAddrResolverI(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed);
oraclize_setNetworkName("eth_mainnet");
return true;
Expand Down

0 comments on commit 211b7b0

Please sign in to comment.