0

error generated Hello! I am following a tutorial that implements Chain Link's Aggregator V3 Interface, but it seems the code is not interacting properly with its import. Attempting to deploy on Remix brings up the error pictured below

Here is the code I'm using to call it:


pragma solidity >= 0.6.6 < 0.9.0;

contract FundMe {

    mapping(address => uint256) public addressToAmountFunded;

    function fund() public payable {
        addressToAmountFunded[msg.sender] += msg.value;
    

    }

}
1

That error occurs when an abstract or interface contract is selected to deploy, and many imports are abstract or interfaces.

Ensure you select the correct contract in the "Deploy and Run Transactions" tab. If you want to choose the "FundMe" contract, make sure it is selected and not some other contract. FundMe in contract selector

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.