Price conversion NOT working no matter what on testnet #149
-
I'm on lesson 4 and I am completely losing it over here. I just want the fund button to be able to know whether I'm sending the contract an amount of Wei that's worth at least $50. Every time I deploy the contract on the rinkby testnet it works but then every time I try to went after calculating the right about of wei based on the current USD value of ETH, it says an error and it does nothing, even when I do the amount that would be $50 worth or even more. What the hell am I doing wrong? Here is my script: // SPDX-License-Identifier: MIT //get funds from people pragma solidity ^0.8.8; import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; contract FundMe {
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Let me help you, bro. Did you check if you have enough funds in your wallet first? If that's the case then you should change your payable function. It seems incorrect:
Let me know if it helps 👍 |
Beta Was this translation helpful? Give feedback.
-
for ETH/USD on Rinkeby aggregator interface address is this => 0x8A753747A1Fa494EC906cE90E9f37563A8AF630e. Which address are you using? |
Beta Was this translation helpful? Give feedback.
@rileymross
for ETH/USD on Rinkeby aggregator interface address is this => 0x8A753747A1Fa494EC906cE90E9f37563A8AF630e.
Which address are you using?