Skip to content

Conversation

@elfedy
Copy link
Collaborator

@elfedy elfedy commented Aug 22, 2025

sign_and_submit_then_watch_default panics when a transaction has valid pallet and call names but the argument SCALE value does not match the expected type. This is the case for submit_dev_extrinsic when argument is a valid stringifyable scale value but it does not match the call type exactly, and made the server behave unexpectedly.

@elfedy elfedy requested review from GMKrieger and notlesh August 22, 2025 18:09
)
.catch_unwind()
.await
.map_err(|_| {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the error useful here? It might help to pass this on, esp. if we find it panics for reasons other than the one assumed here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In theory yes but in practice we don't expect this to panic ever for no reason other than the one we were getting. What we probably need to do is make the server panic proof and catch panics at the global level (not just this call). At that point the error info becomes more useful.

Copy link
Contributor

@notlesh notlesh 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 one comment

Copy link
Contributor

@GMKrieger GMKrieger left a comment

Choose a reason for hiding this comment

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

LGTM

@elfedy elfedy merged commit 2253a85 into main Aug 26, 2025
3 checks passed
@elfedy elfedy deleted the elfedy-fix-panic branch August 26, 2025 11:40
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.

4 participants