Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

sendToken does not work #13

Open
RZeynalov opened this issue Jun 24, 2018 · 1 comment
Open

sendToken does not work #13

RZeynalov opened this issue Jun 24, 2018 · 1 comment

Comments

@RZeynalov
Copy link

RZeynalov commented Jun 24, 2018

Hi Guyz,

The problem in _encode_transaction_data method, i guess new lib of web3 py has changed its methods, do you know how to fix it? Thx

PS: sendEther is working well

Traceback (most recent call last):
File "/home/rashid/PycharmProjects/CryptiArbitrage/TestWeb3.py", line 21, in
print("send token ",sdk.send_tokens_new(address=Web3.toChecksumAddress(kukoinDadyWallet),amount=100))
File "/home/rashid/PycharmProjects/CryptiArbitrage/walletman.py", line 219, in send_tokens_new
hex_data2 = self.token_contract._encode_transaction_data('transfer', args=(address, self.web3.toWei(amount, 'ether')))
AttributeError: 'Contract' object has no attribute '_encode_transaction_data'

@theskumar
Copy link

theskumar commented Aug 2, 2018

Try with web3==3.16.x, the library is not compatible with version 4x of web3.

pip install web3==3.16.5

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants