Skip to content

Commit 384050e

Browse files
committed
current to august 2
1 parent 8ff28d1 commit 384050e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

10_Flask_Dapp/static/js/logic.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

12A_PRICE_CONVERTER_dApp/static/js/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Moralis.serverURL = ""; //Server url from moralis.io
66
This contract is pointing directly to the Chainlink Price Aggregator Dapp*/
77
window.web3 = new Web3(window.ethereum);
88
const priceAggregatorABI = [{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint80","name":"_roundId","type":"uint80"}],"name":"getRoundData","outputs":[{"internalType":"uint80","name":"roundId","type":"uint80"},{"internalType":"int256","name":"answer","type":"int256"},{"internalType":"uint256","name":"startedAt","type":"uint256"},{"internalType":"uint256","name":"updatedAt","type":"uint256"},{"internalType":"uint80","name":"answeredInRound","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestRoundData","outputs":[{"internalType":"uint80","name":"roundId","type":"uint80"},{"internalType":"int256","name":"answer","type":"int256"},{"internalType":"uint256","name":"startedAt","type":"uint256"},{"internalType":"uint256","name":"updatedAt","type":"uint256"},{"internalType":"uint80","name":"answeredInRound","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
9-
const priceContract = new window.web3.eth.Contract(priceAggregatorABI,'');
9+
const priceContract = new window.web3.eth.Contract(priceAggregatorABI,/*'PRICE FEED CONTRACT ACCORDING TO YOUR PAIR, CHECK CHAINLINK DOCS'*/);
1010

1111
//dApp frontend logic
1212
async function convert(){

0 commit comments

Comments
 (0)