Test discussion
#6737
Replies: 1 comment 1 reply
-
Hey, you need to add semicolon ( import {AggregatorV3Interface} from "@chainlink..."; |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey my code not be good.... contract FundMe {
using PriceConverter for uint256;
ParserError: Expected ';' but got 'contract'
--> FundMe.sol:10:2:
|
10 | contract FundMe {
| ^^^^^^^^
Anyone can help me
full code :
... solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
// Note: The AggregatorV3Interface} from '@chainlink..."
import {AggregatorV3Interface} from "@chainlink..."
// colar o file PriceConsumer.sol aqui
contract FundMe {
using PriceConverter for uint256;
mapping(address funder => uint256) public addressToAmountFunded;
address public funders;
// Could we make this contract? /* hint: no! We should make it immutable! /
address public / immutable */ i_owner;
uint256 public constant MINIMUM_USD = 5 * 10 ** 18;
AggregatorV3Interface priceFeed = AggregatorV3Interface(0xfEefF7c3fB57d18C5C6Cdd71e45D2D0b4F9377bF;
return priceFeed.version();
}
modifier onlyOwner() {
// require(msg.sender == owner);
if(msg.sender != i_owner) revert NotOwner();
_;
}
function withdraw() public onlyOwner {
recieve() external payable {
fund();
}
fallback() external payable {
fund();
}
}
Beta Was this translation helpful? Give feedback.
All reactions