Skip to content

Commit

Permalink
feat(ZetaChain): Fix rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshiotomakan committed Jan 25, 2024
1 parent 741c600 commit b5beab8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ impl<Context: CosmosContext> ProtobufPreimager<Context> {
})
}

pub fn preimage_hash_direct(args: &SignDirectArgs, hasher: Hasher) -> SigningResult<ProtobufTxPreimage> {
pub fn preimage_hash_direct(
args: &SignDirectArgs,
hasher: Hasher,
) -> SigningResult<ProtobufTxPreimage> {
let tx_to_sign = ProtobufSerializer::<Context>::build_direct_sign_doc(args);
let encoded_tx = serialize(&tx_to_sign)?;
let tx_hash = hasher.hash(&encoded_tx);
Expand Down

0 comments on commit b5beab8

Please sign in to comment.