ethers-signers/aws: sighash on the inner/updated tx object (#1977)

Signed-off-by: Gyuho Lee <gyuho.lee@avalabs.org>

Signed-off-by: Gyuho Lee <gyuho.lee@avalabs.org>
This commit is contained in:
Gyuho Lee 2023-01-03 22:09:08 +08:00 committed by GitHub
parent 04ed534b72
commit 04e3021dc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ impl super::Signer for AwsSigner {
let chain_id = tx_with_chain.chain_id().map(|id| id.as_u64()).unwrap_or(self.chain_id);
tx_with_chain.set_chain_id(chain_id);
let sighash = tx.sighash();
let sighash = tx_with_chain.sighash();
self.sign_digest_with_eip155(sighash, chain_id).await
}