Skip to content

Commit

Permalink
use static import for ToS ABI
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkunz committed Oct 7, 2024
1 parent c548648 commit d19b67b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/wizard/deposit/tos/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import { wizard } from 'wizard/store';
import { config, wallet } from '$lib/wallet';
import { readContracts } from '@wagmi/core';
import { getTosVersion } from 'trade-executor/helpers/tos';
import termsOfServiceABI from '$lib/eth-defi/abi/TermsOfService.json';

export async function load({ fetch }) {
const abi = (await import('$lib/eth-defi/abi/TermsOfService.json')).default as Abi;
const abi = termsOfServiceABI as Abi;
const { chainId, contracts } = get(wizard).data as DepositWizardData;
const address = contracts.terms_of_service!;
const account = get(wallet).address;
Expand Down

0 comments on commit d19b67b

Please sign in to comment.