You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Verify the decimals provided by the aggrAggregatorV3Interface ---> Add this function to FundMe.sol function getDecimals() public view returns(uint8){ return s_priceFeed.decimals(); }
// Add this to FundMeTest.s.sol
function testCorrectDecimals() public funded { uint8 decimal = fundMe.getDecimals(); assertEq(decimal, 8); } }
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
// Verify the decimals provided by the aggrAggregatorV3Interface ---> Add this function to FundMe.sol
function getDecimals() public view returns(uint8){ return s_priceFeed.decimals(); }
// Add this to FundMeTest.s.sol
function testCorrectDecimals() public funded { uint8 decimal = fundMe.getDecimals(); assertEq(decimal, 8); } }
Beta Was this translation helpful? Give feedback.
All reactions