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

for help #871

Open
maiganne opened this issue Apr 28, 2018 · 5 comments
Open

for help #871

maiganne opened this issue Apr 28, 2018 · 5 comments

Comments

@maiganne
Copy link

UnsignedTransaction = Transaction.exclude(['v', 'r', 's'])

when i excute a python script like this:

from web3 import Web3, HTTPProvider
import rlp
from ethereum.transactions import Transaction




w3 = Web3(HTTPProvider('http://192.168.214.178:8545'))

tx = Transaction(
    nonce=w3.eth.getTransactionCount(w3.eth.coinbase),
    gasprice=w3.eth.gasPrice,
    startgas=100000,
    to='0xd3cda913deb6f67967b99d67acdfa1712c293601',
    value=12345,
    data=b'',
)

i got a problem like this:

 Error
Traceback (most recent call last):
  File "/home/maiganne/projects/eth_project/venv/lib/python3.5/site-packages/twisted/trial/runner.py", line 781, in loadByName
    return self.suiteFactory([self.findByName(name, recurse=recurse)])
  File "/home/maiganne/projects/eth_project/venv/lib/python3.5/site-packages/twisted/trial/runner.py", line 679, in findByName
    __import__(name)
  File "/home/maiganne/projects/eth_project/test_contract.py", line 10, in <module>
    from ethereum.transactions import Transaction
  File "/home/maiganne/projects/eth_project/venv/lib/python3.5/site-packages/ethereum/transactions.py", line 198, in <module>
    UnsignedTransaction = Transaction.exclude(['v', 'r', 's'])
AttributeError: type object 'Transaction' has no attribute 'exclude'

why? does the object Transction has the method exclude?

@leonardol
Copy link

Hi,
I'm pretty sure that the issue you mentioned above is related to the new version of pyrlp (see: ethereum/pyrlp#61). There is no more the exclude method so it should be necessary to update the Transaction class, to solve the problem.

@EgorXor
Copy link

EgorXor commented May 1, 2018

same problem

@jo-tud
Copy link

jo-tud commented Jul 5, 2018

same here

@sontranrad
Copy link

sontranrad commented Jul 26, 2018

hello,
Is there any way to get this solved ? I'm getting into the same situation. @leonardol , as many classes using Transaction class, if I extend it to fix the RLP stuffs, I will need to update many other classes as well. Is there any other solution ? Thanks

@adityasm96
Copy link

hello, has anyone found a solution to this problem!!
Can someone please suggest if u have found one.
Thanks in advance

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

6 participants