Skip to content

Commit

Permalink
updated for comma delimited requests
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickAlphaC committed Mar 22, 2022
1 parent 0492b69 commit f43eb79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/APIConsumer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ contract APIConsumer is ChainlinkClient {
// }
// }
// }
request.add("path", "RAW.ETH.USD.VOLUME24HOUR");
// request.add("path", "RAW.ETH.USD.VOLUME24HOUR"); // Chainlink nodes prior to 1.0.0 support this format
request.add("path", "RAW,ETH,USD,VOLUME24HOUR"); // Chainlink nodes 1.0.0 and later support this format

// Multiply the result by 1000000000000000000 to remove decimals
int256 timesAmount = 10**18;
Expand Down

0 comments on commit f43eb79

Please sign in to comment.