forked from LaconicNetwork/cosmos-explorer
apply wasm execution
This commit is contained in:
parent
90a20deceb
commit
49799ca649
@ -38,7 +38,7 @@
|
||||
});
|
||||
gtag('config', 'G-SSBKVF3GMX');
|
||||
</script>
|
||||
<script type="module" src="https://cdn.jsdelivr.net/npm/@ping-pub/widget@v0.3.10/dist/widget.min.js"></script>
|
||||
<script type="module" src="https://cdn.jsdelivr.net/npm/@ping-pub/widget@latest/dist/widget.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -7,13 +7,11 @@ import { onMounted, ref } from 'vue';
|
||||
import { useWasmStore } from '../WasmStore';
|
||||
import DynamicComponent from '@/components/dynamic/DynamicComponent.vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import type { ContractInfo, PaginabledContractStates, PaginabledContracts } from '../types';
|
||||
import { post } from '@/libs';
|
||||
import type { ContractInfo, PaginabledContractStates } from '../types';
|
||||
|
||||
import { JsonViewer } from "vue3-json-viewer"
|
||||
// if you used v1.0.5 or latster ,you should add import "vue3-json-viewer/dist/index.css"
|
||||
import "vue3-json-viewer/dist/index.css";
|
||||
import WasmVerification from '@/components/WasmVerification.vue';
|
||||
|
||||
const chainStore = useBlockchain();
|
||||
const baseStore = useBaseStore();
|
||||
@ -152,8 +150,6 @@ const tab = ref('detail')
|
||||
@click="tab = 'transaction'">Transactions</a>
|
||||
<a class="tab text-gray-400 uppercase" :class="{ 'tab-active': tab === 'query' }"
|
||||
@click="tab = 'query'">Query</a>
|
||||
<a class="tab text-gray-400 uppercase" :class="{ 'tab-active': tab === 'execute' }"
|
||||
@click="tab = 'execute'">Execute</a>
|
||||
</div>
|
||||
|
||||
<div v-show="tab === 'detail'">
|
||||
@ -211,6 +207,11 @@ const tab = ref('detail')
|
||||
{{ $t('cosmwasm.btn_clear_admin') }}
|
||||
</label>
|
||||
|
||||
<label for="wasm_execute_contract" class="btn btn-primary btn-xs text-xs mr-2"
|
||||
@click="dialog.open('wasm_execute_contract', { contract: contractAddress })">
|
||||
{{ $t('cosmwasm.btn_execute') }}
|
||||
</label>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user