We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80cef74 commit ed8d0c1Copy full SHA for ed8d0c1
linera-execution/src/execution.rs
@@ -57,9 +57,10 @@ where
57
#[derive(Serialize, Deserialize)]
58
struct ExecutionStateViewHash([u8; 32]);
59
impl BcsHashable<'_> for ExecutionStateViewHash {}
60
+ let ExecutionStateView { system, users } = self;
61
let mut hasher = linera_views::sha3::Sha3_256::default();
- hasher.update_with_bytes(&self.system.historical_hash().await?)?;
62
- hasher.update_with_bytes(&self.users.historical_hash().await?)?;
+ hasher.update_with_bytes(&system.historical_hash().await?)?;
63
+ hasher.update_with_bytes(&users.historical_hash().await?)?;
64
let output = hasher.finalize();
65
Ok(CryptoHash::new(&ExecutionStateViewHash(output.into())))
66
}
0 commit comments