Lesson 4 #457
-
error: from the code: // SPDX-License_Identifier:MIT pragma solidity ^0.8.8; import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; contract FundMe{ uint256 public minimumUsd = 50; function fund() public payable{ function getPrice() public view returns (uint256){ function getConversion(uint256 ethAmount) public view returns (uint256){ I followed the coding in the lesson but this error comes up, any help appreciated :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@jacobhay2626 you have used |
Beta Was this translation helpful? Give feedback.
@jacobhay2626 you have used
msg.sender
which is the address that is not compatible with operations like >=. Here you have to usemsg.value
for ethers.