From ac1a25fc21dee164288c29ff5b6aee7f69384fb4 Mon Sep 17 00:00:00 2001 From: TuDo1403 Date: Fri, 14 Jun 2024 22:48:17 +0700 Subject: [PATCH] fix(trezor-client): fix convert_signature invalid s convert --- rust/trezor-client/src/client/ethereum.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/trezor-client/src/client/ethereum.rs b/rust/trezor-client/src/client/ethereum.rs index c6b78f5329..1780681d5f 100644 --- a/rust/trezor-client/src/client/ethereum.rs +++ b/rust/trezor-client/src/client/ethereum.rs @@ -162,6 +162,6 @@ fn convert_signature(resp: &EthereumTxRequest, chain_id: Option) -> Result< } } let r = resp.signature_r().try_into().map_err(|_| Error::MalformedSignature)?; - let s = resp.signature_r().try_into().map_err(|_| Error::MalformedSignature)?; + let s = resp.signature_s().try_into().map_err(|_| Error::MalformedSignature)?; Ok(Signature { r, s, v }) }