Skip to content

FundMe Lesson 3 Sending Eth through a function issue #2909

Answered by tcrin
rikachet1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @rikachet1,

Value (Remix IDE): Interacting with Deployed Contracts
(You can refer to the guide on how to use Remix IDE here)

You are setting Value to 2 Ether when deploying the contract, which causes the transaction to revert.

Solution:
Set Value to 0 Ether when deploying the contract.

Note:
The Value field in Remix IDE must meet the following prerequisites:

  • The contract must be deployed.
  • The function being called in the contract must include the payable keyword if it is intended to receive Ether.
  • To avoid revert, ensure that the Value aligns with the conditions specified in the require statement inside the function.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@EngrPips
Comment options

@tcrin
Comment options

@EngrPips
Comment options

@saif1163
Comment options

@EngrPips
Comment options

Answer selected by rikachet1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants