Skip to content
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

missing declare mapping requestIdToResponse #757

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions en/16/07.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ material:
address callerAddress;
uint256 ethPrice;
}
mapping (uint256=>Response[]) public requestIdToResponse;
event GetLatestEthPriceEvent(address callerAddress, uint id);
event SetLatestEthPriceEvent(uint256 ethPrice, address callerAddress);
event AddOracleEvent(address oracleAddress);
Expand Down
1 change: 1 addition & 0 deletions en/16/08.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ material:
address callerAddress;
uint256 ethPrice;
}
mapping (uint256=>Response[]) public requestIdToResponse;
event GetLatestEthPriceEvent(address callerAddress, uint id);
event SetLatestEthPriceEvent(uint256 ethPrice, address callerAddress);
event AddOracleEvent(address oracleAddress);
Expand Down
1 change: 1 addition & 0 deletions en/16/09.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ material:
address callerAddress;
uint256 ethPrice;
}
mapping (uint256=>Response[]) public requestIdToResponse;
event GetLatestEthPriceEvent(address callerAddress, uint id);
event SetLatestEthPriceEvent(uint256 ethPrice, address callerAddress);
event AddOracleEvent(address oracleAddress);
Expand Down
3 changes: 2 additions & 1 deletion en/16/10.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ material:
address callerAddress;
uint256 ethPrice;
}
mapping (uint256=>Response[]) public requestIdToResponse;
event GetLatestEthPriceEvent(address callerAddress, uint id);
event SetLatestEthPriceEvent(uint256 ethPrice, address callerAddress);
event AddOracleEvent(address oracleAddress);
Expand Down Expand Up @@ -172,4 +173,4 @@ We're close to being done with the decentralized oracle! Before we conclude, let
## Put It to the Test

1. Go ahead and delete the `_id` key from the `requestIdToResponse` map.
2. Go ahead and update the last two function calls (`callerContractInstance.callback` and `SetLatestEthPriceEvent`), replacing `_ethPrice` with `computedEthPrice`.
2. Go ahead and update the last two function calls (`callerContractInstance.callback` and `SetLatestEthPriceEvent`), replacing `_ethPrice` with `computedEthPrice`.