Skip to content

Commit

Permalink
style: linted
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Aug 14, 2023
1 parent 345d5d1 commit 400cfa9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/lib/evm.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down Expand Up @@ -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(''),
})
Expand Down
10 changes: 8 additions & 2 deletions src/pages/transfer/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down Expand Up @@ -165,7 +165,13 @@
{#if errorMessage}
<Error error={errorMessage} {handleBack} />
{:else if step === 'form' || !from || !to || !deposit || !received}
<Form handleContinue={submitForm} {evmBalance} bind:amount={deposit} bind:from bind:to />
<Form
handleContinue={submitForm}
{evmBalance}
bind:amount={deposit}
bind:from
bind:to
/>
{:else if step === 'confirm'}
<Confirm
depositAmount={Asset.from(Number(deposit), '4,EOS')}
Expand Down

0 comments on commit 400cfa9

Please sign in to comment.