-
Notifications
You must be signed in to change notification settings - Fork 99
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
feat(types,specs,tests): Verify resulting transaction receipt #1068
Conversation
912d281
to
bad166b
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.
lots of comments.
I think I found a bug because the transaction exception was verified in all cases and now it is inside If
af61efc
to
6493b33
Compare
6493b33
to
472b064
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.
LGTM.
472b064
to
df7dfc9
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.
add a unit test for transaction exception verification
4 cases (well if none vs none is already covered)
docs: Add snipet about receipts changelog fixup: specs Co-authored-by: winsvega <[email protected]>
df7dfc9
to
09b3688
Compare
🗒️ Description
Transaction.expected_receipt
Adds
expected_receipt
to theTransaction
class in order to signal the test specs that the resulting receipt returned by the transition tool must be verified against the expected values.At the moment only
gas_used
is compared, since this is the only value returned by execution-specs, but this is also the value most used by tests.Updated tests:
Following gas-related tests have been updated in this PR to incorporate a transaction gas usage test:
🔗 Related Issues
#402
✅ Checklist
mkdocs serve
locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.