Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

The trace Module - stateDiff #8495

Closed
adirmola opened this issue Apr 26, 2018 · 2 comments
Closed

The trace Module - stateDiff #8495

adirmola opened this issue Apr 26, 2018 · 2 comments
Labels
M6-rpcapi 📣 RPC API. Z1-question 🙋‍♀️ Issue is a question. Closer should answer. Z7-duplicate 🖨 Issue is a duplicate. Closer should comment with a link to the duplicate.

Comments

@adirmola
Copy link

  • Which Parity version?: 1.8.11
  • Which operating system?: Windows
  • How installed?: via installer
  • Are you fully synchronized?: yes
  • Which network are you connected to?: ethereum
  • Did you try to restart the node?: no

Hi, I'm trying to explore the influence of transaction on accounts state.

Here is how Etherscan represent the transaction:
https://etherscan.io/tx/0xa567744e4a4b267fecbfd95e6df4b058adb9afa0f22355d11cfdc2bceed446b5

I had running the following query:

payload =  '{"method":"trace_replayTransaction","params":["0xa567744e4a4b267fecbfd95e6df4b058adb9afa0f22355d11cfdc2bceed446b5",["stateDiff"]],"id":1,"jsonrpc":"2.0"}'
headers = {"Content-Type": "application/json"}
res = requests.post(url, data=payload, headers=headers)

following is the response (I copied only the contract section):

"0x423e4322cdda29156b49a17dfbd2acc4b280600d":{
"balance":"=",
"code":"=",
"nonce":"=",
"storage":{
"0xa0b6513ad18878b03f0fa500d8e61c2ffa4661f704d4d2ce327b82c6b99fa9fe":{
"*":{
"from":"0x0000000000000000000000000000000000000000000000000000000000000000",
"to":"0x000000000000000000000000000000000000000000000000000a53becd2d3453"
}
},
"0xaed173b0583e10a71a98e19bb793fb6b30c48f6a00720c598fcae2772c1790b7":{
"*":{
"from":"0x0000000000000000000000000000000000000000000000000000000000000000",
"to":"0x000000000000000000000000000000000000000000000000000014198ea64800"
}
}
}
}

The first "from-to" couple should be the change in the token balance of the sender and the second should be of the receiver.
But, as you can see the, "from" of both is "0" what that wasn't true before execute the transaction.

@Tbaut
Copy link
Contributor

Tbaut commented Apr 26, 2018

Can you please post the whole response to have a better overview?

@Tbaut Tbaut added Z1-question 🙋‍♀️ Issue is a question. Closer should answer. M6-rpcapi 📣 RPC API. labels Apr 26, 2018
@Tbaut Tbaut added this to the 1.11 milestone Apr 26, 2018
@sorpaas
Copy link
Collaborator

sorpaas commented Apr 26, 2018

Duplicate of #6520 and should be fixed in #8491. Yay!

@sorpaas sorpaas added the Z7-duplicate 🖨 Issue is a duplicate. Closer should comment with a link to the duplicate. label Apr 26, 2018
@sorpaas sorpaas closed this as completed Apr 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
M6-rpcapi 📣 RPC API. Z1-question 🙋‍♀️ Issue is a question. Closer should answer. Z7-duplicate 🖨 Issue is a duplicate. Closer should comment with a link to the duplicate.
Projects
None yet
Development

No branches or pull requests

3 participants