From 88d2ab1487596649de8bae5bf590ea3e393b95df Mon Sep 17 00:00:00 2001 From: XungHoang <131169320+XungHoang@users.noreply.github.com> Date: Sun, 16 Jul 2023 11:49:15 +0700 Subject: [PATCH 1/4] missing declare mapping requestIdToResponse --- en/16/07.md | 1 + 1 file changed, 1 insertion(+) diff --git a/en/16/07.md b/en/16/07.md index 5aaa7d104b..1af984fa1d 100644 --- a/en/16/07.md +++ b/en/16/07.md @@ -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); From f4ed4491184d3dc4ecc727897d50c8339d1f193c Mon Sep 17 00:00:00 2001 From: XungHoang <131169320+XungHoang@users.noreply.github.com> Date: Sun, 16 Jul 2023 11:50:10 +0700 Subject: [PATCH 2/4] Update 08.md --- en/16/08.md | 1 + 1 file changed, 1 insertion(+) diff --git a/en/16/08.md b/en/16/08.md index c577332d34..3ab114007c 100644 --- a/en/16/08.md +++ b/en/16/08.md @@ -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); From 035c4d2f6d0a5d093e124add1a6afcf257ee2f3c Mon Sep 17 00:00:00 2001 From: XungHoang <131169320+XungHoang@users.noreply.github.com> Date: Sun, 16 Jul 2023 11:50:23 +0700 Subject: [PATCH 3/4] Update 09.md --- en/16/09.md | 1 + 1 file changed, 1 insertion(+) diff --git a/en/16/09.md b/en/16/09.md index cd07aa45e3..1daadd3d76 100644 --- a/en/16/09.md +++ b/en/16/09.md @@ -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); From bfc92b50c991943edab11cd574f75c4f588e05c4 Mon Sep 17 00:00:00 2001 From: XungHoang <131169320+XungHoang@users.noreply.github.com> Date: Sun, 16 Jul 2023 11:50:41 +0700 Subject: [PATCH 4/4] Update 10.md --- en/16/10.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/en/16/10.md b/en/16/10.md index 25ea6daa86..d9360c5cb9 100644 --- a/en/16/10.md +++ b/en/16/10.md @@ -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); @@ -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`. \ No newline at end of file +2. Go ahead and update the last two function calls (`callerContractInstance.callback` and `SetLatestEthPriceEvent`), replacing `_ethPrice` with `computedEthPrice`.