-
Notifications
You must be signed in to change notification settings - Fork 285
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
t8n: Add tx hash calculation for tx receipt #590
Conversation
ba6791d
to
7f07913
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me otherwise.
7f07913
to
05a5bd3
Compare
05a5bd3
to
6e3e39b
Compare
6e3e39b
to
317a4a5
Compare
if (loaded_tx_hash_opt != computed_tx_hash) | ||
throw std::logic_error("transaction hash mismatched: computed " + | ||
hex0x(computed_tx_hash) + ", expected " + | ||
hex0x(loaded_tx_hash_opt.value())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could have used this here, no?
hex0x(loaded_tx_hash_opt.value())); | |
hex0x(*loaded_tx_hash_opt)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merged. I will add new PR if necessary
execution-spec-tests
. The tool doesn't sethash
field for transaction intxs.json
. We have to calculate it.