fundMe.priceFeed() in fundMe.test #1555
-
It seems very strange to me that the following assertion passes.
As per the constructor function in fundMe.sol we are setting priceFeed to an interface object. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@Stark-Code You are getting confused with the solidity feature of creating a default getter function for all public variables. Same with priceFeed, solidity creates a getter function that returns an address of the aggregator. |
Beta Was this translation helpful? Give feedback.
@Stark-Code You are getting confused with the solidity feature of creating a default getter function for all public variables. Same with priceFeed, solidity creates a getter function that returns an address of the aggregator.