Skip to content

Commit 637ce86

Browse files
committed
Fix decoding of GeodeState
1 parent 2a6371b commit 637ce86

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rpc/src/geode.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use sp_core::{blake2_128, twox_128};
1717

1818
use futures::{StreamExt, TryStreamExt};
1919
use jsonrpc_core::futures::{
20-
future::Future as Future01, sink::Sink as Sink01, stream, stream::Stream as Stream01,
20+
future::Future, sink::Sink, stream, stream::Stream,
2121
};
2222
use jsonrpc_pubsub::{manager::SubscriptionManager, typed::Subscriber, SubscriptionId};
2323
use log::warn;
@@ -264,11 +264,11 @@ fn get_geode_state(changes: StorageChangeSet) -> GeodeState {
264264
match data {
265265
Some(data) => {
266266
let mut value: &[u8] = &data.0.clone();
267-
match GeodeState::decode(&mut value) {
268-
Ok(state) => {
269-
return state;
267+
match Geode::<AccountId, Hash>::decode(&mut value) {
268+
Ok(geode) => {
269+
return geode.state;
270270
}
271-
Err(_) => warn!("unable to decode GeodeState"),
271+
Err(_) => warn!("unable to decode Geode"),
272272
}
273273
}
274274
None => warn!("empty change set"),

0 commit comments

Comments
 (0)