Skip to content

Commit d924ece

Browse files
authored
Don't double hash: use the same hash in ExtrinsicDetails and ExtrinsicDetails (#1917)
* Don't double hash: use the same hash in ExtrinsicDetails and ExtrinsicEvents * clippy
1 parent 29bf00e commit d924ece

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subxt/src/blocks/extrinsic_types.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use crate::{
66
blocks::block_types::{get_events, CachedEvents},
77
client::{OfflineClientT, OnlineClientT},
8-
config::{Config, Hasher},
8+
config::Config,
99
error::Error,
1010
events,
1111
};
@@ -250,7 +250,7 @@ where
250250
/// The events associated with the extrinsic.
251251
pub async fn events(&self) -> Result<ExtrinsicEvents<T>, Error> {
252252
let events = get_events(&self.client, self.block_hash, &self.cached_events).await?;
253-
let ext_hash = T::Hasher::hash_of(&self.bytes());
253+
let ext_hash = self.inner.hash();
254254
Ok(ExtrinsicEvents::new(ext_hash, self.index(), events))
255255
}
256256
}

0 commit comments

Comments
 (0)