-
Hello, Here is the output:
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 9 replies
-
Hello @ekong16 this could happen because the def get_account():
if (
network.show_active() in LOCAL_BLOCKCHAIN_ENVIRONMENTS
or network.show_active() in FORKED_LOCAL_ENVIRONMENTS
):
return accounts[0]
else:
return accounts.add(config["wallets"]["from_key"]) so as mainnet-fork is on FORKED_LOCAL_ENVIRONMENTS this will return the first account from ganache-cli as you can see on your run ourtput. I might be taking the gas needed for the transaction from ganache. Hope this info might help. |
Beta Was this translation helpful? Give feedback.
-
Hello, seems like this discussion hasn't yet been resolved. |
Beta Was this translation helpful? Give feedback.
-
So? Any suggetions on what to do? Should we just skip till Lesson 7? |
Beta Was this translation helpful? Give feedback.
-
Lending my voice to this: waiting for a resolution. Thanks @MananJain2002 for astutely pointing that out |
Beta Was this translation helpful? Give feedback.
-
Hello I'm having same "issue"(@MananJain2002 is totally right) and I believe we can just skip this part and go straight for setuping our own for example Alchemy mainnet and it will be all good. Correct me if I'm wrong |
Beta Was this translation helpful? Give feedback.
Hello @ekong16 this could happen because the
get_account
function... you might have something like this:so as mainnet-fork is on FORKED_LOCAL_ENVIRONMENTS this will return the first account from ganache-cli as you can see on your run ourtput.
I might be taking the gas needed for the transaction from ganache.
Hope this info might help.