From d57ad33992d026e84f967ab656d0406214732d98 Mon Sep 17 00:00:00 2001 From: Mikko Ohtamaa Date: Thu, 1 Feb 2024 21:18:58 +0100 Subject: [PATCH] Fix account name --- eth_defi/hotwallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth_defi/hotwallet.py b/eth_defi/hotwallet.py index 48ca00d1..ab3e4848 100644 --- a/eth_defi/hotwallet.py +++ b/eth_defi/hotwallet.py @@ -125,7 +125,7 @@ class HotWallet: # Move 1/2 of ETH from the first test account to ours test_account_1 = web3.eth.accounts[0] stash = web3.eth.get_balance(test_account_1) - tx_hash = web3.eth.send_transaction({"from": deployer, "to": account.address, "value": stash // 2}) + tx_hash = web3.eth.send_transaction({"from": test_account_1, "to": account.address, "value": stash // 2}) assert_transaction_success_with_explanation(web3, tx_hash) # Attach local private key to the web3.py middleware machinery