diff --git a/src/lib/evm.ts b/src/lib/evm.ts index a56e9883..e44aa197 100644 --- a/src/lib/evm.ts +++ b/src/lib/evm.ts @@ -1,7 +1,6 @@ import type {LinkSession} from 'anchor-link' import {Asset, Name} from 'anchor-link' import {ethers} from 'ethers' -import {API} from 'anchor-link' import BN from 'bn.js' @@ -209,7 +208,7 @@ export async function transferEvmToNative({nativeSession, evmAccount, amount}: T from: evmAccount.address, to: targetEvmAddress, value: ethers.utils.parseEther(amount), - gasPrice: await getProvider().getGasPrice(), + gasPrice: await getProvider().getGasPrice(), gasLimit: gas, data: ethers.utils.formatBytes32String(''), }) diff --git a/src/pages/transfer/index.svelte b/src/pages/transfer/index.svelte index 42d7313d..b67079a4 100644 --- a/src/pages/transfer/index.svelte +++ b/src/pages/transfer/index.svelte @@ -18,7 +18,7 @@ import Success from './success.svelte' import Error from './error.svelte' import type {Token} from '~/stores/tokens' - import { updateAccount } from '~/stores/account-provider' + import {updateAccount} from '~/stores/account-provider' let step = 'form' let deposit: string = '' @@ -165,7 +165,13 @@ {#if errorMessage} {:else if step === 'form' || !from || !to || !deposit || !received} -
+ {:else if step === 'confirm'}