Skip to content

Commit

Permalink
Fix typo "CallerContracInterface" (CryptozombiesHQ#510)
Browse files Browse the repository at this point in the history
* Fix 14/11 "CallerContracInterface"

Fixes a small typo in the content and the source

* replace all typo instances
  • Loading branch information
Keeran Raj Hawoldar authored Jul 6, 2021
1 parent ec3b5a1 commit 69ef815
Show file tree
Hide file tree
Showing 24 changed files with 89 additions and 89 deletions.
2 changes: 1 addition & 1 deletion en/14/09.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ material:
}
"oracle/CallerContractInterface.sol": |
pragma solidity 0.5.0;
contract CallerContracInterface {
contract CallerContractInterface {
function callback(uint256 _ethPrice, uint256 id) public;
}
answer: |
Expand Down
4 changes: 2 additions & 2 deletions en/14/10.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ material:
}
function callback(uint256 _ethPrice, uint256 _id) public onlyOracle {
require(myRequests[_id], "This request is not in my pending list.");
ethPrice = _ethPrice;
ethPrice = _ethPrice;
delete myRequests[_id];
emit PriceUpdatedEvent(_ethPrice, _id);
}
Expand All @@ -65,7 +65,7 @@ material:
}
"oracle/CallerContractInterface.sol": |
pragma solidity 0.5.0;
contract CallerContracInterface {
contract CallerContractInterface {
function callback(uint256 _ethPrice, uint256 id) public;
}
answer: |
Expand Down
6 changes: 3 additions & 3 deletions en/15/01.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ material:
function setLatestEthPrice(uint256 _ethPrice, address _callerAddress, uint256 _id) public onlyOwner {
require(pendingRequests[_id], "This request is not in my pending list.");
delete pendingRequests[_id];
CallerContracInterface callerContractInstance;
callerContractInstance = CallerContracInterface(_callerAddress);
CallerContractInterface callerContractInstance;
callerContractInstance = CallerContractInterface(_callerAddress);
callerContractInstance.callback(_ethPrice, _id);
emit SetLatestEthPriceEvent(_ethPrice, _callerAddress);
}
Expand Down Expand Up @@ -118,7 +118,7 @@ material:
}
"oracle/CallerContractInterface.sol": |
pragma solidity 0.5.0;
contract CallerContracInterface {
contract CallerContractInterface {
function callback(uint256 _ethPrice, uint256 id) public;
}
answer: |
Expand Down
6 changes: 3 additions & 3 deletions en/15/02.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ material:
function setLatestEthPrice(uint256 _ethPrice, address _callerAddress, uint256 _id) public onlyOwner {
require(pendingRequests[_id], "This request is not in my pending list.");
delete pendingRequests[_id];
CallerContracInterface callerContractInstance;
callerContractInstance = CallerContracInterface(_callerAddress);
CallerContractInterface callerContractInstance;
callerContractInstance = CallerContractInterface(_callerAddress);
callerContractInstance.callback(_ethPrice, _id);
emit SetLatestEthPriceEvent(_ethPrice, _callerAddress);
}
Expand Down Expand Up @@ -124,7 +124,7 @@ material:
}
"oracle/CallerContractInterface.sol": |
pragma solidity 0.5.0;
contract CallerContracInterface {
contract CallerContractInterface {
function callback(uint256 _ethPrice, uint256 id) public;
}
answer: |
Expand Down
6 changes: 3 additions & 3 deletions en/15/03.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ material:
function setLatestEthPrice(uint256 _ethPrice, address _callerAddress, uint256 _id) public onlyOwner {
require(pendingRequests[_id], "This request is not in my pending list.");
delete pendingRequests[_id];
CallerContracInterface callerContractInstance;
callerContractInstance = CallerContracInterface(_callerAddress);
CallerContractInterface callerContractInstance;
callerContractInstance = CallerContractInterface(_callerAddress);
callerContractInstance.callback(_ethPrice, _id);
emit SetLatestEthPriceEvent(_ethPrice, _callerAddress);
}
Expand Down Expand Up @@ -139,7 +139,7 @@ material:
}
"oracle/CallerContractInterface.sol": |
pragma solidity 0.5.0;
contract CallerContracInterface {
contract CallerContractInterface {
function callback(uint256 _ethPrice, uint256 id) public;
}
answer: |
Expand Down
6 changes: 3 additions & 3 deletions en/15/04.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ material:
function setLatestEthPrice(uint256 _ethPrice, address _callerAddress, uint256 _id) public onlyOwner {
require(pendingRequests[_id], "This request is not in my pending list.");
delete pendingRequests[_id];
CallerContracInterface callerContractInstance;
callerContractInstance = CallerContracInterface(_callerAddress);
CallerContractInterface callerContractInstance;
callerContractInstance = CallerContractInterface(_callerAddress);
callerContractInstance.callback(_ethPrice, _id);
emit SetLatestEthPriceEvent(_ethPrice, _callerAddress);
}
Expand Down Expand Up @@ -145,7 +145,7 @@ material:
}
"oracle/CallerContractInterface.sol": |
pragma solidity 0.5.0;
contract CallerContracInterface {
contract CallerContractInterface {
function callback(uint256 _ethPrice, uint256 id) public;
}
answer: |
Expand Down
6 changes: 3 additions & 3 deletions en/15/05.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ material:
function setLatestEthPrice(uint256 _ethPrice, address _callerAddress, uint256 _id) public onlyOwner {
require(pendingRequests[_id], "This request is not in my pending list.");
delete pendingRequests[_id];
CallerContracInterface callerContractInstance;
callerContractInstance = CallerContracInterface(_callerAddress);
CallerContractInterface callerContractInstance;
callerContractInstance = CallerContractInterface(_callerAddress);
callerContractInstance.callback(_ethPrice, _id);
emit SetLatestEthPriceEvent(_ethPrice, _callerAddress);
}
Expand Down Expand Up @@ -150,7 +150,7 @@ material:
}
"oracle/CallerContractInterface.sol": |
pragma solidity 0.5.0;
contract CallerContracInterface {
contract CallerContractInterface {
function callback(uint256 _ethPrice, uint256 id) public;
}
answer: |
Expand Down
6 changes: 3 additions & 3 deletions en/15/06.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ material:
function setLatestEthPrice(uint256 _ethPrice, address _callerAddress, uint256 _id) public onlyOwner {
require(pendingRequests[_id], "This request is not in my pending list.");
delete pendingRequests[_id];
CallerContracInterface callerContractInstance;
callerContractInstance = CallerContracInterface(_callerAddress);
CallerContractInterface callerContractInstance;
callerContractInstance = CallerContractInterface(_callerAddress);
callerContractInstance.callback(_ethPrice, _id);
emit SetLatestEthPriceEvent(_ethPrice, _callerAddress);
}
Expand Down Expand Up @@ -154,7 +154,7 @@ material:
}
"oracle/CallerContractInterface.sol": |
pragma solidity 0.5.0;
contract CallerContracInterface {
contract CallerContractInterface {
function callback(uint256 _ethPrice, uint256 id) public;
}
answer: |
Expand Down
6 changes: 3 additions & 3 deletions en/15/07.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ material:
function setLatestEthPrice(uint256 _ethPrice, address _callerAddress, uint256 _id) public onlyOwner {
require(pendingRequests[_id], "This request is not in my pending list.");
delete pendingRequests[_id];
CallerContracInterface callerContractInstance;
callerContractInstance = CallerContracInterface(_callerAddress);
CallerContractInterface callerContractInstance;
callerContractInstance = CallerContractInterface(_callerAddress);
callerContractInstance.callback(_ethPrice, _id);
emit SetLatestEthPriceEvent(_ethPrice, _callerAddress);
}
Expand Down Expand Up @@ -162,7 +162,7 @@ material:
}
"oracle/CallerContractInterface.sol": |
pragma solidity 0.5.0;
contract CallerContracInterface {
contract CallerContractInterface {
function callback(uint256 _ethPrice, uint256 id) public;
}
answer: |
Expand Down
12 changes: 6 additions & 6 deletions en/15/08.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ material:
module.exports = {
loadAccount,
};
"oracle/EthPriceOracle.sol": |
pragma solidity 0.5.0;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
Expand All @@ -118,8 +118,8 @@ material:
function setLatestEthPrice(uint256 _ethPrice, address _callerAddress, uint256 _id) public onlyOwner {
require(pendingRequests[_id], "This request is not in my pending list.");
delete pendingRequests[_id];
CallerContracInterface callerContractInstance;
callerContractInstance = CallerContracInterface(_callerAddress);
CallerContractInterface callerContractInstance;
callerContractInstance = CallerContractInterface(_callerAddress);
callerContractInstance.callback(_ethPrice, _id);
emit SetLatestEthPriceEvent(_ethPrice, _callerAddress);
}
Expand All @@ -130,7 +130,7 @@ material:
import "./EthPriceOracleInterface.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
contract CallerContract is Ownable {
uint256 private ethPrice;
uint256 private ethPrice;
EthPriceOracleInterface private oracleInstance;
address private oracleAddress;
mapping(uint256=>bool) myRequests;
Expand Down Expand Up @@ -165,7 +165,7 @@ material:
}
"oracle/CallerContractInterface.sol": |
pragma solidity 0.5.0;
contract CallerContracInterface {
contract CallerContractInterface {
function callback(uint256 _ethPrice, uint256 id) public;
}
answer: |
Expand Down Expand Up @@ -213,7 +213,7 @@ material:
processedRequests++
}
}
async function processRequest (oracleContract, ownerAddress, id, callerAddress) {
let retries = 0
while (retries < MAX_RETRIES) {
Expand Down
14 changes: 7 additions & 7 deletions en/15/09.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ material:
module.exports = {
loadAccount,
};
"oracle/EthPriceOracle.sol": |
pragma solidity 0.5.0;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
Expand All @@ -145,8 +145,8 @@ material:
function setLatestEthPrice(uint256 _ethPrice, address _callerAddress, uint256 _id) public onlyOwner {
require(pendingRequests[_id], "This request is not in my pending list.");
delete pendingRequests[_id];
CallerContracInterface callerContractInstance;
callerContractInstance = CallerContracInterface(_callerAddress);
CallerContractInterface callerContractInstance;
callerContractInstance = CallerContractInterface(_callerAddress);
callerContractInstance.callback(_ethPrice, _id);
emit SetLatestEthPriceEvent(_ethPrice, _callerAddress);
}
Expand All @@ -157,7 +157,7 @@ material:
import "./EthPriceOracleInterface.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
contract CallerContract is Ownable {
uint256 private ethPrice;
uint256 private ethPrice;
EthPriceOracleInterface private oracleInstance;
address private oracleAddress;
mapping(uint256=>bool) myRequests;
Expand Down Expand Up @@ -192,7 +192,7 @@ material:
}
"oracle/CallerContractInterface.sol": |
pragma solidity 0.5.0;
contract CallerContracInterface {
contract CallerContractInterface {
function callback(uint256 _ethPrice, uint256 id) public;
}
answer: |
Expand Down Expand Up @@ -251,7 +251,7 @@ material:
processedRequests++
}
}
async function processRequest (oracleContract, ownerAddress, id, callerAddress) {
let retries = 0
while (retries < MAX_RETRIES) {
Expand Down Expand Up @@ -294,7 +294,7 @@ Luckily, there's a small library called `BN.js` that'll help you overcome these

> ☞ For the above reasons, it's recommended that you always use `BN.js` when dealing with numbers.
Now, the Binance API returns something like `169.87000000`.
Now, the Binance API returns something like `169.87000000`.

Let's see how you can convert this to `BN`.

Expand Down
6 changes: 3 additions & 3 deletions en/15/10.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ material:
function setLatestEthPrice(uint256 _ethPrice, address _callerAddress, uint256 _id) public onlyOwner {
require(pendingRequests[_id], "This request is not in my pending list.");
delete pendingRequests[_id];
CallerContracInterface callerContractInstance;
callerContractInstance = CallerContracInterface(_callerAddress);
CallerContractInterface callerContractInstance;
callerContractInstance = CallerContractInterface(_callerAddress);
callerContractInstance.callback(_ethPrice, _id);
emit SetLatestEthPriceEvent(_ethPrice, _callerAddress);
}
Expand Down Expand Up @@ -197,7 +197,7 @@ material:
}
"oracle/CallerContractInterface.sol": |
pragma solidity 0.5.0;
contract CallerContracInterface {
contract CallerContractInterface {
function callback(uint256 _ethPrice, uint256 id) public;
}
answer: |
Expand Down
6 changes: 3 additions & 3 deletions en/15/11.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ material:
function setLatestEthPrice(uint256 _ethPrice, address _callerAddress, uint256 _id) public onlyOwner {
require(pendingRequests[_id], "This request is not in my pending list.");
delete pendingRequests[_id];
CallerContracInterface callerContractInstance;
callerContractInstance = CallerContracInterface(_callerAddress);
CallerContractInterface callerContractInstance;
callerContractInstance = CallerContractInterface(_callerAddress);
callerContractInstance.callback(_ethPrice, _id);
emit SetLatestEthPriceEvent(_ethPrice, _callerAddress);
}
Expand Down Expand Up @@ -212,7 +212,7 @@ material:
}
"oracle/CallerContractInterface.sol": |
pragma solidity 0.5.0;
contract CallerContracInterface {
contract CallerContractInterface {
function callback(uint256 _ethPrice, uint256 id) public;
}
answer: |
Expand Down
10 changes: 5 additions & 5 deletions en/15/12.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ material:
module.exports = {
loadAccount,
};
"oracle/EthPriceOracle.sol": |
pragma solidity 0.5.0;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
Expand All @@ -208,8 +208,8 @@ material:
function setLatestEthPrice(uint256 _ethPrice, address _callerAddress, uint256 _id) public onlyOwner {
require(pendingRequests[_id], "This request is not in my pending list.");
delete pendingRequests[_id];
CallerContracInterface callerContractInstance;
callerContractInstance = CallerContracInterface(_callerAddress);
CallerContractInterface callerContractInstance;
callerContractInstance = CallerContractInterface(_callerAddress);
callerContractInstance.callback(_ethPrice, _id);
emit SetLatestEthPriceEvent(_ethPrice, _callerAddress);
}
Expand All @@ -220,7 +220,7 @@ material:
import "./EthPriceOracleInterface.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
contract CallerContract is Ownable {
uint256 private ethPrice;
uint256 private ethPrice;
EthPriceOracleInterface private oracleInstance;
address private oracleAddress;
mapping(uint256=>bool) myRequests;
Expand Down Expand Up @@ -255,7 +255,7 @@ material:
}
"oracle/CallerContractInterface.sol": |
pragma solidity 0.5.0;
contract CallerContracInterface {
contract CallerContractInterface {
function callback(uint256 _ethPrice, uint256 id) public;
}
answer: |
Expand Down
8 changes: 4 additions & 4 deletions en/16/01.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ material:
function setLatestEthPrice(uint256 _ethPrice, address _callerAddress, uint256 _id) public onlyOwner {
require(pendingRequests[_id], "This request is not in my pending list.");
delete pendingRequests[_id];
CallerContracInterface callerContractInstance;
callerContractInstance = CallerContracInterface(_callerAddress);
CallerContractInterface callerContractInstance;
callerContractInstance = CallerContractInterface(_callerAddress);
callerContractInstance.callback(_ethPrice, _id);
emit SetLatestEthPriceEvent(_ethPrice, _callerAddress);
}
Expand Down Expand Up @@ -57,8 +57,8 @@ material:
function setLatestEthPrice(uint256 _ethPrice, address _callerAddress, uint256 _id) public onlyOwner {
require(pendingRequests[_id], "This request is not in my pending list.");
delete pendingRequests[_id];
CallerContracInterface callerContractInstance;
callerContractInstance = CallerContracInterface(_callerAddress);
CallerContractInterface callerContractInstance;
callerContractInstance = CallerContractInterface(_callerAddress);
callerContractInstance.callback(_ethPrice, _id);
emit SetLatestEthPriceEvent(_ethPrice, _callerAddress);
}
Expand Down
8 changes: 4 additions & 4 deletions en/16/02.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ material:
function setLatestEthPrice(uint256 _ethPrice, address _callerAddress, uint256 _id) public onlyOwner {
require(pendingRequests[_id], "This request is not in my pending list.");
delete pendingRequests[_id];
CallerContracInterface callerContractInstance;
callerContractInstance = CallerContracInterface(_callerAddress);
CallerContractInterface callerContractInstance;
callerContractInstance = CallerContractInterface(_callerAddress);
callerContractInstance.callback(_ethPrice, _id);
emit SetLatestEthPriceEvent(_ethPrice, _callerAddress);
}
Expand Down Expand Up @@ -62,8 +62,8 @@ material:
function setLatestEthPrice(uint256 _ethPrice, address _callerAddress, uint256 _id) public onlyOwner {
require(pendingRequests[_id], "This request is not in my pending list.");
delete pendingRequests[_id];
CallerContracInterface callerContractInstance;
callerContractInstance = CallerContracInterface(_callerAddress);
CallerContractInterface callerContractInstance;
callerContractInstance = CallerContractInterface(_callerAddress);
callerContractInstance.callback(_ethPrice, _id);
emit SetLatestEthPriceEvent(_ethPrice, _callerAddress);
}
Expand Down
Loading

0 comments on commit 69ef815

Please sign in to comment.