-
Notifications
You must be signed in to change notification settings - Fork 15
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: more information added to AllBatchError. (PRO-1171) #4535
Conversation
When AllBatch build fails, an event is emitted that contains the error, this way both the pallet and the error details is visible.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #4535 +/- ##
======================================
- Coverage 73% 73% -0%
======================================
Files 401 401
Lines 68357 68184 -173
Branches 68357 68184 -173
======================================
- Hits 49832 49585 -247
- Misses 15895 15973 +78
+ Partials 2630 2626 -4 ☔ View full report in Codecov by Sentry. |
crate::Event::<Test>::FailedToBuildAllBatchCall { | ||
error: cf_chains::AllBatchError::Other, |
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.
I think this test passes because calling do_egress_scheduled_fetch_transfer
outside of a transactional wrapper doesn't roll back the storage.
A better approach might be to refactor do_egress_scheduled_fetch_transfer
so that it returns a Result and simply decorate the fn with #[transactional]
.
…igned-error * origin/main: chore: fetch solana state from docker (#4538) feat: charge a fee for opening swap deposit addresses (#4512) refactor: Remove RpcAsset (PRO-1187) (#4491) fix: re-add version update (#4533) fix: pull first (#4526) feat: auto pick non-breaking changes (#4498) # Conflicts: # state-chain/pallets/cf-ingress-egress/src/lib.rs # state-chain/pallets/cf-ingress-egress/src/tests.rs
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.
I'll fix these and then merge. Thanks @syan095
Pull Request
Closes: PRO-1171
Checklist
Please conduct a thorough self-review before opening the PR.
Summary
When AllBatch build fails, an event is emitted that contains the error, this way both the pallet and the error details is visible.