Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
froch committed Feb 20, 2024
1 parent 98c1be2 commit 9adb53c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ FROM node:alpine as builder

COPY package.json .
RUN set -eux \
&& yarn --ignore-engines install
&& yarn

COPY . .
RUN set -eux \
&& yarn --ignore-engines build
&& yarn build

FROM nginx:alpine as app
COPY --from=builder /app/dist/ /usr/share/nginx/html/
Expand Down
4 changes: 2 additions & 2 deletions src/components/dynamic/TextElement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { isBech32Address } from '@/libs/utils';
import { useBlockchain, useFormatter } from '@/stores';
import MdEditor from 'md-editor-v3';
import { computed, onMounted, ref } from 'vue';
import nameMatcha from '@leapwallet/name-matcha'
import { registry } from '@leapwallet/name-matcha';
import { fromBase64, toHex } from '@cosmjs/encoding';
const chainStore = useBlockchain()
Expand Down Expand Up @@ -43,7 +43,7 @@ const text = computed(() => {
const names = ref([] as {name?: string | null, provider?: string}[])
onMounted(() => {
if(isAddress()) nameMatcha.lookupAll(props.value).then(re => {
if(isAddress()) registry.lookupAll(props.value).then(re => {
names.value = Object.keys(re).map(key => ({name: re[key], provider: key})).filter( x => x.name)
})
})
Expand Down
7 changes: 3 additions & 4 deletions src/modules/wallet/suggest.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script setup lang="ts">
import { computed, ref } from 'vue';
import { suggestChain } from '@leapwallet/cosmos-snap-provider';
import { useDashboard, type ChainConfig, useBlockchain, NetworkType } from '@/stores';
import { CosmosRestClient } from '@/libs/client';
import { onMounted } from 'vue';
Expand Down Expand Up @@ -38,7 +37,7 @@ async function initParamsForKeplr() {
const chain = selected.value
if(!chain.endpoints?.rest?.at(0)) throw new Error("Endpoint does not set");
const client = CosmosRestClient.newDefault(chain.endpoints.rest?.at(0)?.address || "")
const b = await client.getBaseBlockLatest()
const b = await client.getBaseBlockLatest()
const chainid = b.block.header.chain_id
const gasPriceStep = chain.keplrPriceStep || {
Expand Down Expand Up @@ -98,7 +97,7 @@ async function initSnap() {
if(!chain.endpoints?.rest?.at(0)) throw new Error("Endpoint does not set");
const client = CosmosRestClient.newDefault(chain.endpoints.rest?.at(0)?.address || "")
const b = await client.getBaseBlockLatest()
const b = await client.getBaseBlockLatest()
const chainId = b.block.header.chain_id
conf.value = JSON.stringify({
Expand Down Expand Up @@ -136,7 +135,7 @@ function suggest() {
})
}
} else {
suggestChain(JSON.parse(conf.value));
console.log("suggest")
}
}
Expand Down

0 comments on commit 9adb53c

Please sign in to comment.