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

fix: avoid panic with invalid proposal data #97

Merged
merged 4 commits into from
Apr 24, 2023

Conversation

mpetrun5
Copy link
Contributor

Refactored extract_deposit_data function to return a result or an error to avoid triggering panic with expect call when invalid proposal data is sent.

Closes: #90

@mpetrun5 mpetrun5 requested review from freddyli7 and tolak April 19, 2023 16:01
Copy link
Collaborator

@tolak tolak left a comment

Choose a reason for hiding this comment

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

LGTM, left some suggestion changes

bridge/src/lib.rs Outdated Show resolved Hide resolved
bridge/src/lib.rs Outdated Show resolved Hide resolved
bridge/src/lib.rs Outdated Show resolved Hide resolved
bridge/src/lib.rs Outdated Show resolved Hide resolved
bridge/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@tolak tolak left a comment

Choose a reason for hiding this comment

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

LGTM, left some suggestion changes

@mpetrun5 mpetrun5 merged commit c3b7da7 into main Apr 24, 2023
@MakMuftic MakMuftic mentioned this pull request Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid Proposal Data Could Crash Substrate Runtime
3 participants