-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Transaction dict key for data differs between getTransaction() and sendTransaction() #184
Comments
Note that this same problem exists directly in |
Ah! @pipermerriam: If this should be taken upstream, perhaps you know where "upstream" is? |
Yes, I would consider this an upstream bug as both of these methods conform to the JSON-RPC spec. |
It's not a trivial EIP to create, but having a formal agreed upon RPC spec that the clients could test against would be really powerful. I know @FlySwatter (Dan Finlay) was working on something like this at one point but I don't know what the progress was. |
You refer to EipSignal, which proposes using a DAO to manage a public compatibility table whose test spec format is up for discussion in eip 217. I largely passed off the creation of that DAO to the Boardroom team for the moment, because they had some of the required pieces in place, but will hopefully have some fresh time to get back on that soon, because I see a lot of these incompatibilities popping up. In the meanwhile, feel free to chime in on that spec format, it hasn't gotten much actionable response. |
What seems wrong?
When getting a transaction that has data attached with
tx = web3.eth.getTransaction(txhash)
, the data will be accessible viatx['input']
.When sending a transaction with data, the expected key for data is
data
.So, to re-send the same transaction with an increased gas price, something like the following has to be done (in REPL):
Otherwise, the transaction will have been re-created without data at all.
Many of the other keys are quite similar - is there a reason for this "mismatch"?
A solemn monkey
Source: /u/squamuglia @ /r/aww
The text was updated successfully, but these errors were encountered: