From 6edd2b9c3913be85325ee31a2ff1a0506605d423 Mon Sep 17 00:00:00 2001
From: XFT-dev <XFT-DEV@Offshit>
Date: Sun, 18 Apr 2021 13:34:05 +0300
Subject: [PATCH] tweaking the script

---
 frontend/Shifting/scripts/py/script.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/frontend/Shifting/scripts/py/script.py b/frontend/Shifting/scripts/py/script.py
index 792780c..f58f054 100644
--- a/frontend/Shifting/scripts/py/script.py
+++ b/frontend/Shifting/scripts/py/script.py
@@ -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)
 
-- 
GitLab