Skip to content

Commit ce7a5c0

Browse files
committed
Fix v22 enumeratesigners
The v22 help is not correct, it gives incorrect field names. They are correct in v23. Fix the v22 struct to match the correct names in v23.
1 parent 17e19ce commit ce7a5c0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

types/src/v22/signer.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ use serde::{Deserialize, Serialize};
1111
/// > Returns a list of external signers from -signer.
1212
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
1313
#[serde(deny_unknown_fields)]
14-
pub struct EnumerateSigners(pub Vec<Signers>);
14+
pub struct EnumerateSigners {
15+
/// List of external signers.
16+
pub signers: Vec<Signers>,
17+
}
1518

1619
/// An item from the list returned by the JSON-RPC method `enumeratesigners`
1720
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
1821
#[serde(deny_unknown_fields)]
1922
pub struct Signers {
2023
/// Master key fingerprint.
21-
pub hex: String,
24+
pub fingerprint: String,
2225
/// Device name.
23-
#[serde(rename = "str")]
24-
pub device_name: String,
26+
pub name: String,
2527
}

0 commit comments

Comments
 (0)