Commit 6edd2b9c authored by XFT-dev's avatar XFT-dev
Browse files

tweaking the script

parent 286c7526
......@@ -22,7 +22,7 @@ def approve(amount):
'gasPrice': w3.eth.gasPrice,
'nonce': w3.eth.getTransactionCount(w3.eth.defaultAccount.address)
})
signed_txn = w3.eth.account.signTransaction(txn, '0x047eb26808901c4fdf33262a3d9ea7e6a15f5683f9f60eef1b5a615fc2b3756a')
signed_txn = w3.eth.account.signTransaction(txn, priv_key)
txn_hash = w3.eth.sendRawTransaction(signed_txn.rawTransaction)
tx_receipt = w3.eth.waitForTransactionReceipt(txn_hash)
......@@ -35,7 +35,7 @@ def shift(amount):
'gasPrice': w3.eth.gasPrice,#w3.eth.gasPrice,
'nonce': w3.eth.getTransactionCount(w3.eth.defaultAccount.address)
})
signed_txn = w3.eth.account.signTransaction(txn, '0x047eb26808901c4fdf33262a3d9ea7e6a15f5683f9f60eef1b5a615fc2b3756a')
signed_txn = w3.eth.account.signTransaction(txn, priv_key)
txn_hash = w3.eth.sendRawTransaction(signed_txn.rawTransaction)
tx_receipt = w3.eth.waitForTransactionReceipt(txn_hash)
......@@ -46,7 +46,7 @@ def faucet():
'gasPrice': w3.eth.gasPrice,#w3.eth.gasPrice,
'nonce': w3.eth.getTransactionCount(w3.eth.defaultAccount.address)
})
signed_txn = w3.eth.account.signTransaction(txn, '0x047eb26808901c4fdf33262a3d9ea7e6a15f5683f9f60eef1b5a615fc2b3756a')
signed_txn = w3.eth.account.signTransaction(txn, priv_key)
txn_hash = w3.eth.sendRawTransaction(signed_txn.rawTransaction)
tx_receipt = w3.eth.waitForTransactionReceipt(txn_hash)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment