Traceback (most recent call last):
File "C:/Users/prog/PycharmProjects/untitled/web3/web3_test.py", line 23, in
'nonce': web3.eth.getTransactionCount(From)})
File "C:\Users\prog\AppData\Local\Programs\Python\Python37\lib\site-packages\web3\contract.py", line 1061, in buildTransaction
raise ValueError("Cannot set data in build transaction")
ValueError: Cannot set data in build transaction
How can it be fixed?
Fill this section in if you know how this could or should be fixed.
The data should be added automatically. Try without the data key/value. I'm going to close, but if that doesn't solve the problem, feel free to reopen!
pip freeze
outputAdding data when sending erc20 tokens causes an error.
How can I solve this?
This is example. https://etherscan.io/tx/0xab6c66b44b58b57358336409458258ee249cba2d989b75f28463c7e6c8ae5ecf
What was wrong?
Traceback (most recent call last): File "C:/Users/prog/PycharmProjects/untitled/web3/web3_test.py", line 23, in
'nonce': web3.eth.getTransactionCount(From)})
File "C:\Users\prog\AppData\Local\Programs\Python\Python37\lib\site-packages\web3\contract.py", line 1061, in buildTransaction
raise ValueError("Cannot set data in build transaction")
ValueError: Cannot set data in build transaction
How can it be fixed?
Fill this section in if you know how this could or should be fixed.