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

feat(interchain-token-service): parameterize execute error #127

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AttissNgo
Copy link
Contributor

@AttissNgo AttissNgo commented Jan 2, 2025

- replace panic_with_error with proper error handling using Result
- this changes the AxelarExecutableInterface
to return Result<(), soroban_sdk::Error>
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.63%. Comparing base (8eba319) to head (6ba1e98).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #127   +/-   ##
=======================================
  Coverage   94.63%   94.63%           
=======================================
  Files          52       52           
  Lines        3130     3132    +2     
=======================================
+ Hits         2962     2964    +2     
  Misses        168      168           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -24,7 +24,7 @@ pub trait AxelarExecutableInterface {
message_id: String,
source_address: String,
payload: Bytes,
);
) -> Result<(), soroban_sdk::Error>;
Copy link
Member

Choose a reason for hiding this comment

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

See MigratableInterface for how to parameterize the error

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.

3 participants