Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
offshiftXFT
protocol-main
Commits
6edd2b9c
Commit
6edd2b9c
authored
3 years ago
by
XFT-dev
Browse files
Options
Download
Email Patches
Plain Diff
tweaking the script
parent
286c7526
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
frontend/Shifting/scripts/py/script.py
frontend/Shifting/scripts/py/script.py
+3
-3
No files found.
frontend/Shifting/scripts/py/script.py
View file @
6edd2b9c
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment