diff --git a/oraclizeAPI_0.4.25.sol b/oraclizeAPI_0.4.25.sol index e197855..2f299ed 100644 --- a/oraclizeAPI_0.4.25.sol +++ b/oraclizeAPI_0.4.25.sol @@ -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(); @@ -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;