Skip to content

Commit

Permalink
add serde(untagged)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomarQ committed Apr 24, 2024
1 parent bac7afd commit 12fea04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/rpc/src/eth/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ mod old_types {

#[derive(PartialEq, Eq, Clone, Copy, Encode, Decode, Debug)]
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "std", serde(untagged))]
pub enum DispatchErrorLegacy {
/// Some error occurred.
Other(
Expand Down Expand Up @@ -131,6 +130,7 @@ mod old_types {
/// Reason why a dispatch call failed.
#[derive(PartialEq, Eq, Clone, Copy, Encode, Decode, Debug)]
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "std", serde(untagged))]
pub enum DispatchError {
V1(DispatchErrorLegacy),
V2(sp_runtime::DispatchError),
Expand Down

0 comments on commit 12fea04

Please sign in to comment.