Spaces:
Sleeping
Sleeping
app.py
CHANGED
@@ -486,7 +486,7 @@ def buyToken(amountToken, sender_address, tokenToBuy, prixNative):
|
|
486 |
'nonce': nonce,
|
487 |
})
|
488 |
|
489 |
-
signed_txn = web3.eth.account.sign_transaction(pancakeswap2_txn, private_key="
|
490 |
tx_token = web3.eth.send_raw_transaction(signed_txn.rawTransaction)
|
491 |
print("TRX : " + web3.to_hex(tx_token))
|
492 |
trxfinal = web3.to_hex(tx_token)
|
|
|
486 |
'nonce': nonce,
|
487 |
})
|
488 |
|
489 |
+
signed_txn = web3.eth.account.sign_transaction(pancakeswap2_txn, private_key="privatekey")
|
490 |
tx_token = web3.eth.send_raw_transaction(signed_txn.rawTransaction)
|
491 |
print("TRX : " + web3.to_hex(tx_token))
|
492 |
trxfinal = web3.to_hex(tx_token)
|