Skip to content

Commit

Permalink
fix: New widget release now working for all networks
Browse files Browse the repository at this point in the history
  • Loading branch information
paintoshi committed Jul 15, 2024
1 parent 87439ef commit a9a1d22
Show file tree
Hide file tree
Showing 3 changed files with 167 additions and 139 deletions.
9 changes: 8 additions & 1 deletion app/components/Widget.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import { LiFiWidget, WidgetConfig, WidgetSkeleton } from '@lifi/widget'
import { LiFiWidget, WidgetConfig, WidgetSkeleton, ChainId } from '@lifi/widget'
import styles from '@/app/page.module.css'
import { ClientOnly } from '@/app/components/ClientOnly'

Expand Down Expand Up @@ -33,6 +33,13 @@ const widgetConfig = {
boxShadow: '0px 0px 101px 0px rgb(36 5 255 / 28%)',
borderRadius: '16px',
},
/** Not needed for now
sdkConfig: {
rpcUrls: {
[ChainId.FTM]: ['https://rpcapi.fantom.network/'],
},
},
*/
},
hiddenUI: ['appearance', 'drawerCloseButton'],
variant: 'wide',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"lint": "next lint"
},
"dependencies": {
"@lifi/widget": "^3.0.0",
"@lifi/widget": "^3.1.0",
"next": "14.2.4",
"react": "18.3.1",
"react-dom": "18.3.1"
Expand Down
Loading

0 comments on commit a9a1d22

Please sign in to comment.