From 10d95e9d0b72ffc2526d2c8c0071274f20b953d9 Mon Sep 17 00:00:00 2001
From: liangping <18786721@qq.com>
Date: Fri, 15 Dec 2023 16:13:56 +0800
Subject: [PATCH] add verification
---
src/components/WasmVerification.vue | 21 ++++++++++++-------
src/libs/http.ts | 2 +-
.../cosmwasm/[code_id]/transactions.vue | 2 +-
3 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/src/components/WasmVerification.vue b/src/components/WasmVerification.vue
index 10eed6ac..d9335067 100644
--- a/src/components/WasmVerification.vue
+++ b/src/components/WasmVerification.vue
@@ -23,9 +23,9 @@ console.log("contract:", props.contract)
onMounted(() => {
- console.log("mounted", `${baseurl}/deploy-histories/neutron-1?contract=${props.contract}`, chainId.value)
- get(`${baseurl}/deploy-histories/${chainId.value}?contract=${props.contract}`).then((x) => {
- console.log("x:", x)
+ // console.log("mounted", `${baseurl}/deploy-histories/neutron?contract=${props.contract}`, chainId.value)
+ get(`${baseurl}/deploy-histories/neutron?contract=${props.contract}`).then((x) => {
+ console.log("verification:", x)
verification.value = x
}).catch(e => {
console.error(e)
@@ -36,17 +36,22 @@ function verify() {
const base = useBaseStore()
const id = base.latest?.block?.header?.chain_id || "unknown"
- const data = {"contractAddress": props.contract, "chainId": "neutron"}
- console.log(data)
+ const data = {"contractAddress": props.contract, "chainId": id}
+
post(`${baseurl}/verification/neutron`, data).then((x)=> {
- console.log("x", x)
+ verification.value = x.result
})
}
Verification {{ chainId }}
+ Verification