Skip to content

Commit

Permalink
add blocknumber used to launch ganache in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Elnaril committed Oct 24, 2023
1 parent 4fcd877 commit d109a95
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tutorials/buy_tokens/buy_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

private_key = "0x6c9803151aa5cf420e98dd1afb9db96f0510918cb2249e9858519d47777125c9"

# Ethereum fork with Ganache at block number = 17365005
chain_id = 1337
rpc_endpoint = "http://127.0.0.1:8545"

Expand Down Expand Up @@ -30,7 +31,6 @@
.v2_swap_exact_in(FunctionRecipient.SENDER, amount_in, min_amount_out, path, payer_is_sender=False)
.build(codec.get_default_deadline())
)


w3 = Web3(Web3.HTTPProvider(rpc_endpoint))
account = Account.from_key(private_key)
Expand All @@ -57,5 +57,3 @@

print(uni_balance / 10**18)
print(w3.eth.get_balance("0x5086D4289c219bcA9F65CC7F3aeC479EBFE1d934"))


0 comments on commit d109a95

Please sign in to comment.