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:
parent
04ed534b72
commit
04e3021dc0
|
@ -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);
|
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);
|
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
|
self.sign_digest_with_eip155(sighash, chain_id).await
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue