From 2f3cfae2b5dd754bd0311e0d64283317e356f5b6 Mon Sep 17 00:00:00 2001 From: blessingbblockchain Date: Thu, 25 May 2023 16:18:39 +0100 Subject: [PATCH] Refactor tapping link contract --- price feed.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/price feed.sol b/price feed.sol index 95371b5..46631b3 100644 --- a/price feed.sol +++ b/price feed.sol @@ -4,10 +4,10 @@ import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; - contract tappingChainlink{ + contract TappingChainlink { AggregatorV3Interface internal priceFeed; - constructor() { + constructor(address _priceFeedAddress) { priceFeed = AggregatorV3Interface(0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419); } @@ -21,5 +21,5 @@ ) = priceFeed.latestRoundData(); return price; } - } + }