Skip to content

Commit 12fea04

Browse files
committed
add serde(untagged)
1 parent bac7afd commit 12fea04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/rpc/src/eth/execute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ mod old_types {
9393

9494
#[derive(PartialEq, Eq, Clone, Copy, Encode, Decode, Debug)]
9595
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
96-
#[cfg_attr(feature = "std", serde(untagged))]
9796
pub enum DispatchErrorLegacy {
9897
/// Some error occurred.
9998
Other(
@@ -131,6 +130,7 @@ mod old_types {
131130
/// Reason why a dispatch call failed.
132131
#[derive(PartialEq, Eq, Clone, Copy, Encode, Decode, Debug)]
133132
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
133+
#[cfg_attr(feature = "std", serde(untagged))]
134134
pub enum DispatchError {
135135
V1(DispatchErrorLegacy),
136136
V2(sp_runtime::DispatchError),

0 commit comments

Comments
 (0)