Skip to content

Commit

Permalink
fix(signer): sendTransaction populate from
Browse files Browse the repository at this point in the history
  • Loading branch information
petarTxFusion committed Aug 9, 2024
1 parent a0b4083 commit a9db811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,8 @@ export class Signer extends AdapterL2(ethers.JsonRpcSigner) {
tx.customData
) {
const address = await this.getAddress();
const from = !tx.from ? address : await ethers.resolveAddress(tx.from);
if (!isAddressEq(from, address)) {
tx.from ??= address;
if (!isAddressEq(await ethers.resolveAddress(tx.from), address)) {
throw new Error('Transaction `from` address mismatch!');
}
const zkTx: TransactionLike = {
Expand Down

0 comments on commit a9db811

Please sign in to comment.