Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update metaport dependency, addressChanged handler #434

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@mdx-js/rollup": "^2.3.0",
"@mui/icons-material": "^5.15.14",
"@mui/material": "^5.15.14",
"@skalenetwork/metaport": "3.1.0-develop.0",
"@skalenetwork/metaport": "3.2.0-develop.0",
"@skalenetwork/skale-contracts-ethers-v6": "1.0.1",
"@transak/transak-sdk": "^3.1.1",
"@types/react-copy-to-clipboard": "^5.0.4",
Expand Down
2 changes: 1 addition & 1 deletion skale-network
Submodule skale-network updated 359 files
2 changes: 1 addition & 1 deletion src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -565,8 +565,8 @@ body::-webkit-scrollbar {
}

code {
white-space: pre-wrap;
overflow: hidden;
white-space: nowrap;
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
Expand Down
4 changes: 2 additions & 2 deletions src/core/ecosystem/categories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const categories: Categories = {
defi: {
name: 'DeFi',
subcategories: {
dex: { name: 'DEX' },
dex: { name: 'DEX' }
}
},
'digital-collectibles': { name: 'Digital Collectibles', subcategories: {} },
Expand Down Expand Up @@ -78,7 +78,7 @@ export const categories: Categories = {
other: { name: 'Other', subcategories: {} },
partner: { name: 'Partner', subcategories: {} },
security: { name: 'Security', subcategories: {} },
'social': { name: 'Social', subcategories: {} },
social: { name: 'Social', subcategories: {} },
tools: { name: 'Tools', subcategories: {} },
wallet: { name: 'Wallet', subcategories: {} },
metaverse: { name: 'Metaverse', subcategories: {} },
Expand Down
12 changes: 10 additions & 2 deletions src/pages/Bridge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ import {
SkPaper,
type interfaces,
TransactionData,
styles
styles,
useWagmiAccount
} from '@skalenetwork/metaport'
import { type types } from '@/core'

Expand Down Expand Up @@ -77,9 +78,12 @@ export default function Bridge(props: { isXs: boolean; chainsMeta: types.ChainsM
token,
tokens,
setToken,
transactionsHistory
transactionsHistory,
addressChanged
} = useMetaportStore((state) => state)

const { address } = useWagmiAccount()

function validChainName(chainName: string | null): boolean {
if (!chainName) return false
return mpc.config.chains.includes(chainName)
Expand Down Expand Up @@ -112,6 +116,10 @@ export default function Bridge(props: { isXs: boolean; chainsMeta: types.ChainsM
updateSearchParams()
}, [chainName1, chainName2, appName1, appName2, token])

useEffect(() => {
addressChanged()
}, [address])

useEffect(() => {
if (chainName1 && chainName2 && token) return
const from = searchParams.get('from')
Expand Down
Loading