cln-grpc: Map AmountOrAll and AmountOrAny

This commit is contained in:
Christian Decker
2022-04-01 14:42:45 +10:30
committed by Rusty Russell
parent 04e7e285d7
commit bba68e2136
12 changed files with 90 additions and 10 deletions

View File

@@ -75,7 +75,7 @@ impl ClnRpc {
// serde_json knows which variant of [`Request`] should be
// used.
response["method"] = req2["method"].clone();
log::warn!("XXX {:?}", response);
serde_json::from_value(response).context("converting response into enum")
}
}