Skip to content

Commit

Permalink
Update gtest/src/program.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Sabaun Taraki <[email protected]>
  • Loading branch information
mqxf and techraed authored Sep 14, 2023
1 parent 2c75946 commit 1ca2d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtest/src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ impl<'a> Program<'a> {
}

/// Reads and decodes the program's state .
pub fn read_state<D: Decode, E: Encode>(&self, payload: E) -> Result<D> {
pub fn read_state<D: Decode, P: Encode>(&self, payload: P) -> Result<D> {
let state_bytes = self.read_state_bytes(payload.encode())?;
D::decode(&mut state_bytes.as_ref()).map_err(Into::into)
}
Expand Down

0 comments on commit 1ca2d21

Please sign in to comment.