-
Notifications
You must be signed in to change notification settings - Fork 90
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
Added a temporary field used by Receipt::Panic
to fill contract_id
if any
#261
Conversation
src/util.rs
Outdated
assert_eq!( | ||
&expected_reason, | ||
reason.reason(), | ||
"Expected {}, found {}", | ||
expected_reason, | ||
reason.reason() | ||
); | ||
match expected_reason { | ||
PanicReason::ContractNotInInputs => assert!(contract_id.is_some()), |
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.
Maybe we should also have tests that the contract id is set to an non-zero 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.
Checked contract_id
for LDC
opt code
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!
Fix for #255 and #233