Skip to content

Commit

Permalink
📦 VERSION: 3.3.5
Browse files Browse the repository at this point in the history
- fix: metaContract qurey
  • Loading branch information
Aluos committed Oct 15, 2024
1 parent a698e81 commit d0e752f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "metalet",
"private": true,
"version": "3.3.4",
"version": "3.3.5",
"type": "module",
"scripts": {
"dev": "vite --config ./vite-config/vite.dev.config.ts",
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Metalet",
"description": "A cross-chain crypto wallet extension",
"version": "3.3.4",
"version": "3.3.5",
"manifest_version": 3,
"action": {
"default_popup": "popup.html",
Expand Down
2 changes: 1 addition & 1 deletion src/data/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const VERSION = '3.3.4'
export const VERSION = '3.3.5'

export const FEEB = 1
export const P2PKH_UNLOCK_SIZE = 1 + 1 + 72 + 1 + 33
Expand Down
3 changes: 2 additions & 1 deletion src/pages/wallet/Token.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ const router = useRouter()
const symbol = ref(route.params.symbol as string)
const address = ref(route.params.address as string)
const genesis = ref(route.params.genesis as string)
const codehash = ref(route.params.codeHash as string)
const enabled = computed(() => !!address.value && !!symbol.value && !!genesis.value)
const { getIcon } = useIconsStore()
const icon = computed(() => getIcon(CoinCategory.MetaContract, genesis.value) || '')
const tags = getTags(CoinCategory.MetaContract)
const { data: assets } = useMetaContractAssetsQuery(address, { enabled })
const { data: assets } = useMetaContractAssetsQuery(address, { enabled,genesis,codehash })
const asset = computed(() => {
if (assets.value?.length) {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/wallet/components/AssetList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function toBRC20(asset: Asset, address: string) {
function toToken(token: MetaContractAsset, address: string) {
router.push({
name: 'token',
params: { genesis: token.genesis, symbol: token.symbol, address },
params: { genesis: token.genesis, symbol: token.symbol, address,codeHash: token.codeHash },
})
}
Expand Down
2 changes: 1 addition & 1 deletion src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ const routes = [
},
},
{
path: '/wallet/tokens/:address/:symbol/:genesis',
path: '/wallet/tokens/:address/:symbol/:codeHash/:genesis',
component: () => import('./pages/wallet/Token.vue'),
name: 'token',
meta: {
Expand Down

0 comments on commit d0e752f

Please sign in to comment.