Skip to content

Commit

Permalink
Merge pull request #274 from zkLinkProtocol/fix/deposit_status_issue
Browse files Browse the repository at this point in the history
Fix/deposit status issue
  • Loading branch information
leochw authored Jul 24, 2024
2 parents c94ce15 + 32ef50f commit eddc436
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions data/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ export const l1Networks = {
...mainnet,
name: "Ethereum",
network: "mainnet",
rpcUrls: {
default: {
http: ["https://rpc.ankr.com/eth", "https://cloudflare-eth.com"],
},
},
},
goerli: {
...goerli,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "zkLink Portal provides Wallet and Bridge functionality for interacting with zkLink Nova",
"private": true,
"scripts": {
"dev": "nuxt dev",
"dev": "nuxt dev --port 3333",
"dev:node:memory": "cross-env NODE_TYPE=memory npm run dev",
"dev:node:docker": "cross-env NODE_TYPE=dockerized npm run dev",
"dev:node:nexus-goerli": "cross-env NODE_TYPE=nexus-goerli npm run dev",
Expand Down
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 eddc436

Please sign in to comment.