Skip to content

Commit

Permalink
fix deposit status wait issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MickWang committed Jul 24, 2024
1 parent c94ce15 commit c01903c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions store/zksync/transactionStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const useZkSyncTransactionStatusStore = defineStore("zkSyncTransactionSta

const getDepositL2TransactionHash = async (l1TransactionHash: string) => {
const publicClient = onboardStore.getPublicClient();
const transaction = await publicClient.waitForTransactionReceipt({
const transaction = await publicClient?.getTransactionReceipt({
hash: l1TransactionHash as Hash,
});
for (const log of transaction.logs) {
Expand All @@ -116,7 +116,7 @@ export const useZkSyncTransactionStatusStore = defineStore("zkSyncTransactionSta

const getDepositL2TransactionHashForSecondary = async (l1TransactionHash: string): Promise<Hash> => {
const publicClient = onboardStore.getPublicClient();
const transaction = await publicClient.waitForTransactionReceipt({
const transaction = await publicClient.getTransactionReceipt({
hash: l1TransactionHash as Hash,
});
console.log("getDepositL2TransactionHashForSecondary", l1TransactionHash);
Expand Down

0 comments on commit c01903c

Please sign in to comment.