Skip to content

Commit

Permalink
fix: test UnknownCall
Browse files Browse the repository at this point in the history
  • Loading branch information
Daanvdplas committed Jul 23, 2024
1 parent 87029a0 commit 5c9e90f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/devnet/src/extensions/v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ mod tests {
DispatchError::Other(""),
(Other { dispatch_error_index: 0, error_index: 0, error: 0 }),
),
(DispatchError::Other("UnknownFunctionId"), UnknownCall),
(DispatchError::Other("UnknownCall"), UnknownCall),
(DispatchError::Other("DecodingFailed"), DecodingFailed),
(DispatchError::CannotLookup, CannotLookup),
(DispatchError::BadOrigin, BadOrigin),
Expand Down Expand Up @@ -120,7 +120,7 @@ mod tests {
DispatchError::Other("Random"),
(Other { dispatch_error_index: 0, error_index: 0, error: 0 }),
),
(DispatchError::Other("UnknownFunctionId"), UnknownCall),
(DispatchError::Other("UnknownCall"), UnknownCall),
(DispatchError::Other("DecodingFailed"), DecodingFailed),
];
for (dispatch_error, expected) in test_cases {
Expand Down

0 comments on commit 5c9e90f

Please sign in to comment.