bridge_ui: loader should be 15 blocks for all EVMs

Change-Id: I1bd488815c92f919f13e2db30f6dd8e12f8043ef
This commit is contained in:
Evan Gray 2021-10-15 23:22:20 -04:00
parent b9c718c625
commit 60a33353af
1 changed files with 2 additions and 6 deletions

View File

@ -1,8 +1,4 @@
import {
ChainId,
CHAIN_ID_ETH,
CHAIN_ID_SOLANA,
} from "@certusone/wormhole-sdk";
import { ChainId, CHAIN_ID_SOLANA } from "@certusone/wormhole-sdk";
import { LinearProgress, makeStyles, Typography } from "@material-ui/core";
import { Connection } from "@solana/web3.js";
import { useEffect, useState } from "react";
@ -71,7 +67,7 @@ export default function TransactionProgress({
const blockDiff =
tx && tx.block && currentBlock ? currentBlock - tx.block : undefined;
const expectedBlocks =
chainId === CHAIN_ID_SOLANA ? 32 : chainId === CHAIN_ID_ETH ? 15 : 1;
chainId === CHAIN_ID_SOLANA ? 32 : isEVMChain(chainId) ? 15 : 1;
if (
!isSendComplete &&
(chainId === CHAIN_ID_SOLANA || isEVMChain(chainId)) &&