Skip to content

Commit

Permalink
Fix some eslint warnigs
Browse files Browse the repository at this point in the history
  • Loading branch information
jscriptcoder committed Mar 30, 2023
1 parent f255e72 commit 2ba7871
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
1 change: 0 additions & 1 deletion packages/bridge-ui/src/components/TaikoBanner.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script>
import { _ } from 'svelte-i18n';
import SelectChain from './form/SelectChain.svelte';
</script>

Expand Down
1 change: 0 additions & 1 deletion packages/bridge-ui/src/components/form/Memo.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script lang="ts">
import TooltipModal from '../modals/TooltipModal.svelte';
import Tooltip from '../Tooltip.svelte';
import ButtonWithTooltip from '../ButtonWithTooltip.svelte';
export let memo: string = '';
Expand Down
1 change: 0 additions & 1 deletion packages/bridge-ui/src/pages/home/Home.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script lang="ts">
import { _ } from 'svelte-i18n';
import { location } from 'svelte-spa-router';
import { transactions } from '../../store/transactions';
import BridgeForm from '../../components/form/BridgeForm.svelte';
Expand Down
10 changes: 5 additions & 5 deletions packages/bridge-ui/src/storage/StorageService.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe('storage tests', () => {

const svc = new StorageService(mockStorage as any, providers);

const addresses = await svc.getAllByAddress('0x123', L2_CHAIN_ID);
const addresses = await svc.getAllByAddress('0x123');

expect(addresses).toEqual([]);
});
Expand All @@ -120,7 +120,7 @@ describe('storage tests', () => {

const svc = new StorageService(mockStorage as any, providers);

const addresses = await svc.getAllByAddress('0x123', L1_CHAIN_ID);
const addresses = await svc.getAllByAddress('0x123');

expect(addresses).toEqual([
{
Expand Down Expand Up @@ -156,7 +156,7 @@ describe('storage tests', () => {

const svc = new StorageService(mockStorage as any, providers);

const addresses = await svc.getAllByAddress('0x123', L1_CHAIN_ID);
const addresses = await svc.getAllByAddress('0x123');

expect(addresses).toEqual([
{
Expand Down Expand Up @@ -201,7 +201,7 @@ describe('storage tests', () => {

const svc = new StorageService(mockStorage as any, providers);

const addresses = await svc.getAllByAddress('0x123', L1_CHAIN_ID);
const addresses = await svc.getAllByAddress('0x123');

expect(addresses).toEqual([
{
Expand Down Expand Up @@ -253,7 +253,7 @@ describe('storage tests', () => {

const svc = new StorageService(mockStorage as any, providers);

const addresses = await svc.getAllByAddress('0x123', L2_CHAIN_ID);
const addresses = await svc.getAllByAddress('0x123');

expect(addresses).toEqual([
{
Expand Down
5 changes: 1 addition & 4 deletions packages/bridge-ui/src/storage/StorageService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ export class StorageService implements Transactioner {
this.providers = providers;
}

async getAllByAddress(
address: string,
chainID?: number,
): Promise<BridgeTransaction[]> {
async getAllByAddress(address: string): Promise<BridgeTransaction[]> {
const txs: BridgeTransaction[] = JSON.parse(
this.storage.getItem(`transactions-${address.toLowerCase()}`),
);
Expand Down

0 comments on commit 2ba7871

Please sign in to comment.