fix: fix status code for insufficient fund in new interpreter (#1241)#1244
Conversation
* fix: fix status code for insufficient fund in new interpreter * fix: fix unwrap behaviour * fix: run precommit
WalkthroughThis pull request refactors error handling for insufficient funds scenarios in transaction creation. It changes the ErrRuntime error type from using an explicit Inner field to an embedded InterpreterError with an Unwrap() method, updates the transaction API to recognize numscript.MissingFundsErr as insufficient funds, and simplifies related test assertions. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release/v2.3 #1244 +/- ##
================================================
+ Coverage 81.69% 81.78% +0.08%
================================================
Files 187 187
Lines 9059 9059
================================================
+ Hits 7401 7409 +8
+ Misses 1220 1215 -5
+ Partials 438 435 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
backport #1241