@openocean.finance/widget 1.0.24 → 1.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/widget",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "Openocean Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
5
5
  "type": "module",
6
6
  "main": "./dist/esm/index.js",
@@ -1,2 +1,2 @@
1
1
  export const name = '@openocean.finance/widget'
2
- export const version = '1.0.24'
2
+ export const version = '1.0.25'
@@ -33,6 +33,12 @@ export const useAvailableChains = (chainTypes?: ChainType[]) => {
33
33
  .filter((chainType) => isItemAllowed(chainType, chainTypesConfig))
34
34
 
35
35
  let availableChains = await getChains()
36
+ // reset solana chain id
37
+ const solanaChain = availableChains.find((chain) => chain.key === 'sol')
38
+ if (solanaChain) {
39
+ solanaChain.chainType = ChainType.SVM;
40
+ solanaChain.id = 1151111081099710;
41
+ }
36
42
  // allow chains "starknet","aptos","near","ont","sui",
37
43
  const allowedChainsIds = chains?.allow?.length ? chains.allow : DEFAULT_CHAIN_IDS;
38
44
  const allowedChains = availableChains.filter((chain) => {