Skip to content

Commit

Permalink
fix: wallet type on sign type data
Browse files Browse the repository at this point in the history
  • Loading branch information
mektigboy committed Jan 27, 2024
1 parent f79129b commit f727e06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/signature/create_signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ pub(crate) fn sign_with_agent(
}
}

fn sign_typed_data<T: Eip712>(payload: &T, wallet: &LocalWallet) -> Result<Signature> {
fn sign_typed_data<T: Eip712, D>(payload: &T, wallet: &Wallet<D>) -> Result<Signature>
where
D: PrehashSigner<(RecoverableSignature, RecoveryId)>,
{
let encoded = payload
.encode_eip712()
.map_err(|e| Error::Eip712(e.to_string()))?;
Expand Down

0 comments on commit f727e06

Please sign in to comment.