Skip to content

Commit 1571538

Browse files
Merge pull request #884 from 0xsequence/migration
Provider sent to prepareBlankEnvelope
2 parents 830c08d + 044abf5 commit 1571538

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/wallet/core/src/wallet.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ export class Wallet {
402402
factory,
403403
factoryData,
404404
},
405-
...(await this.prepareBlankEnvelope(Number(chainId))),
405+
...(await this.prepareBlankEnvelope(Number(chainId), provider)),
406406
}
407407
}
408408

@@ -490,7 +490,7 @@ export class Wallet {
490490
nonce,
491491
calls,
492492
},
493-
...(await this.prepareBlankEnvelope(Number(chainId))),
493+
...(await this.prepareBlankEnvelope(Number(chainId), provider)),
494494
}
495495
}
496496

@@ -597,8 +597,8 @@ export class Wallet {
597597
return encoded
598598
}
599599

600-
private async prepareBlankEnvelope(chainId: number) {
601-
const status = await this.getStatus()
600+
private async prepareBlankEnvelope(chainId: number, provider?: Provider.Provider) {
601+
const status = await this.getStatus(provider)
602602

603603
return {
604604
wallet: this.address,

0 commit comments

Comments
 (0)