Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The transaction data property should be input when requested. #173

Open
ignition42 opened this issue Dec 19, 2019 · 0 comments
Open

The transaction data property should be input when requested. #173

ignition42 opened this issue Dec 19, 2019 · 0 comments

Comments

@ignition42
Copy link

What was wrong?

According to JSON RPC API when a transaction is received (eg. via eth_gettransactionbyhash) the data of the transaction can be retrieved via accessing the input property.

Both backends, MockBackend and PyEVMBackend return the data in a data property. Meaning I need to change implementation for testing, mock it or mutate it.

The data property is used for sending transactions though (eg. eth_sendtransaction), but when the transaction is requested, the returned data is in the input property.

How can it be fixed?

Maybe storing the data property from the sent transaction into an input property instead of data, but I would need to do more research in order to do answer that question properly.

Possible locations: MockBackend, PyEVMBackend

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

No branches or pull requests

2 participants