Lesson 6: Brownie Fund Me ValueError: insufficient funds for gas * price + value #1482
Unanswered
mvarenitsyn
asked this question in
Q&A
Replies: 1 comment
-
Hello @mvarenitsyn |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone!
I'm trying to run a test script (test_fund_me.py) after establishing mainnet-fork-dev using Alchemy. Here is output:
def test_can_fund_and_withdraw():
account = get_account()
fund_me = deploy_Fundme()
print(f"my balance is {account.balance()}")
entrance_fee = fundme.getEntranceFee() + 100
E ValueError: insufficient funds for gas * price + value
tests/test_fund_me.py:12: ValueError
What can be a reason? I also check for account balance:
Captured stdout call ----------------------------------------------------------------------------
Contract deployed to 0xE7eD6747FaC5360f88a2EFC03E00d25789F69291
my balance is 1000000000000000000000
Any thoughts?
UPD:
Same code passed well on ganache blockchain.
But on mainnet-fork-dev fund_me.getEntranceFee() function gives value = 238371441489773650809337480
Beta Was this translation helpful? Give feedback.
All reactions