-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(invariant): decode custom error with target contract abis #7559
Conversation
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
pending @klkvr
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
let mut abis: Vec<&JsonAbi> = targets.iter().map(|contract| &contract.1 .1).collect(); | ||
abis.push(invariant_contract.abi); |
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.
don't need to collect
let mut abis: Vec<&JsonAbi> = targets.iter().map(|contract| &contract.1 .1).collect(); | |
abis.push(invariant_contract.abi); | |
let abis = targets.iter().map(|contract| &contract.1 .1).chain(std::iter::once(invariant_contract.abi)); |
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.
updated with 816615d
Motivation
Closes #4178
Solution
FAIL. Reason: custom error d14cf5d4:]