Skip to content

Lesson 6 : List index out of range (MacOS Catalina 10.15.7) #451

Answered by JamiDEV
JamiDEV asked this question in Q&A
Discussion options

You must be logged in to vote

from @cromewar

is a parameter you can add on brownie after {"from": account, }also I noticed the error is saying you need to spend more eth, so make sure your functions are something like this:

def fund():
    fund_me = FundMe[-1]
    account = get_account()
    entrance_fee = fund_me.getEntranceFee()
    print(entrance_fee)
    print(f"The current entry fee is {entrance_fee}")
    print("Funding")
    fund_me.fund({"from": account, "value": entrance_fee})

on the contract

  function fund() public payable {
       uint256 mimimumUSD = 50 * 10**18;
       require(
           getConversionRate(msg.value) >= mimimumUSD,
           "You need to spend more ETH!"
       );
       addressToAmoun…

Replies: 2 comments 15 replies

Comment options

You must be logged in to vote
15 replies
@cromewar
Comment options

@JamiDEV
Comment options

@cromewar
Comment options

@JamiDEV
Comment options

@JamiDEV
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by JamiDEV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants