Skip to content
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

Merged
merged 3 commits into from
Nov 3, 2022

Conversation

xgreenx
Copy link
Collaborator

@xgreenx xgreenx commented Nov 3, 2022

Fix for #255 and #233

@xgreenx xgreenx requested review from Voxelot and Salka1988 November 3, 2022 03:14
@xgreenx xgreenx self-assigned this Nov 3, 2022
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()),
Copy link
Member

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?

Copy link
Collaborator Author

@xgreenx xgreenx Nov 3, 2022

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

Copy link
Member

@Salka1988 Salka1988 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@xgreenx xgreenx merged commit 5638231 into master Nov 3, 2022
@xgreenx xgreenx deleted the bugfix/panic-contract-id branch November 3, 2022 22:50
@mitchmindtree mitchmindtree added the fuel-vm Related to the `fuel-vm` crate. label Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fuel-vm Related to the `fuel-vm` crate.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants