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

sendToken does not work #13

@RZeynalov

Description

@RZeynalov

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions