1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

fix(trezor-client): fix convert_signature invalid s convert

This commit is contained in:
TuDo1403 2024-06-14 22:48:17 +07:00 committed by matejcik
parent 61fe99036e
commit ac1a25fc21

View File

@ -162,6 +162,6 @@ fn convert_signature(resp: &EthereumTxRequest, chain_id: Option<u64>) -> 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 })
}