160160 <template
161161 v-if =" (! tokenCustomBridge || ! tokenCustomBridge ?.bridgingDisabled ) && (step === ' form' || step === ' confirm' ) "
162162 >
163- <CommonErrorBlock v-if =" feeError" class =" mt-2" @try-again =" estimate" >
163+ <CommonErrorBlock
164+ v-if =" feeError"
165+ class =" mt-2"
166+ :show-copy-button =" true"
167+ :copied =" copied"
168+ @try-again =" estimate"
169+ @copy-message =" copyMessage(`Fee estimation error: ${feeError.message}`)"
170+ >
164171 Fee estimation error: {{ feeError.message }}
165172 </CommonErrorBlock >
166173 <div class =" mt-4 flex items-center gap-4" >
210217 <NuxtLink :to =" { name: 'receive-methods' }" class =" alert-link" >Receive funds</NuxtLink >
211218 </CommonAlert >
212219 </transition >
220+ <transition v-bind =" TransitionAlertScaleInOutTransition" mode =" out-in" >
221+ <CommonAlert
222+ v-if =" selectedToken?.address?.toUpperCase() === WETH_L1_ADDRESS.toUpperCase()"
223+ class =" mt-4"
224+ variant =" error"
225+ :icon =" ExclamationTriangleIcon"
226+ >
227+ <p >
228+ Currently, the <span class =" font-medium" >{{ selectedToken?.symbol }}</span > token is
229+ <span class =" font-medium" >disabled</span > for deposit.
230+ </p >
231+ </CommonAlert >
232+ </transition >
213233 <CommonErrorBlock v-if =" allowanceRequestError" class =" mt-2" @try-again =" requestAllowance" >
214234 Checking allowance error: {{ allowanceRequestError.message }}
215235 </CommonErrorBlock >
@@ -389,13 +409,15 @@ import useFee from "@/composables/zksync/deposit/useFee";
389409import useTransaction from " @/composables/zksync/deposit/useTransaction" ;
390410import { customBridgeTokens } from " @/data/customBridgeTokens" ;
391411import { isCustomNode } from " @/data/networks" ;
412+ import { WETH_L1_ADDRESS } from " @/utils/constants" ;
392413import DepositSubmitted from " @/views/transactions/DepositSubmitted.vue" ;
393414
394415import type { Token , TokenAmount } from " @/types" ;
395416import type { BigNumberish } from " ethers" ;
396417
397418const route = useRoute ();
398419const router = useRouter ();
420+ const { copy, copied } = useCopy ();
399421
400422const onboardStore = useOnboardStore ();
401423const tokensStore = useZkSyncTokensStore ();
@@ -411,6 +433,10 @@ const { balance, balanceInProgress, balanceError } = storeToRefs(zkSyncEthereumB
411433
412434const { captureException } = useSentryLogger ();
413435
436+ const copyMessage = async (text : string ) => {
437+ await copy (text );
438+ };
439+
414440const toNetworkModalOpened = ref (false );
415441const toNetworkSelected = (networkKey ? : string ) => {
416442 if (destinations .value .ethereum .key === networkKey ) {
@@ -646,6 +672,9 @@ watch(
646672);
647673
648674const continueButtonDisabled = computed (() => {
675+ if (selectedToken .value ?.address ?.toUpperCase () === WETH_L1_ADDRESS .toUpperCase ()) {
676+ return true ;
677+ }
649678 if (
650679 ! transaction .value ||
651680 ! enoughBalanceToCoverFee .value ||
0 commit comments