diff --git a/dapp/bun.lockb b/dapp/bun.lockb index e28bf34..575f9c9 100755 Binary files a/dapp/bun.lockb and b/dapp/bun.lockb differ diff --git a/dapp/package.json b/dapp/package.json index 8683430..bb9e8e0 100644 --- a/dapp/package.json +++ b/dapp/package.json @@ -2,30 +2,30 @@ "dependencies": { "@astrojs/check": "^0.9.4", "@astrojs/netlify": "^5.5.4", - "@astrojs/react": "^3.6.2", + "@astrojs/react": "^3.6.3", "@astrojs/tailwind": "5.1.2", "@creit.tech/sorobandomains-sdk": "^0.1.4", "@creit.tech/stellar-wallets-kit": "^1.3.0", - "@mdxeditor/editor": "^3.19.2", - "@nanostores/react": "^0.8.0", + "@mdxeditor/editor": "^3.20.0", + "@nanostores/react": "^0.8.2", "@stellar/stellar-sdk": "^13.0.0", - "@web3-storage/w3up-client": "^16.5.1", + "@web3-storage/w3up-client": "^16.5.2", "astro": "4.16.16", "astro-seo": "^0.8.4", - "github-markdown-css": "^5.8.0", + "github-markdown-css": "^5.8.1", "install": "^0.13.0", "js-sha3": "^0.9.3", - "markdown-to-jsx": "^7.6.2", + "markdown-to-jsx": "^7.7.1", "nanostores": "^0.11.3", "react18-json-view": "^0.2.8", - "tailwindcss": "^3.4.15", - "typescript": "^5.6.3" + "tailwindcss": "^3.4.16", + "typescript": "^5.7.2" }, "devDependencies": { "@web3-storage/w3cli": "^7.9.1", - "dotenv": "^16.4.5", + "dotenv": "^16.4.7", "glob": "^11.0.0", - "prettier": "^3.3.3", + "prettier": "^3.4.2", "prettier-plugin-astro": "^0.14.1" }, "name": "dapp", diff --git a/dapp/src/service/WriteContractService.ts b/dapp/src/service/WriteContractService.ts index a854ca2..166f1aa 100644 --- a/dapp/src/service/WriteContractService.ts +++ b/dapp/src/service/WriteContractService.ts @@ -70,8 +70,7 @@ async function commitHash(commit_hash: string): Promise> { try { await tx.signAndSend({ signTransaction: async (xdr) => { - const { signedTxXdr } = await kit.signTransaction(xdr); - return signedTxXdr; + return await kit.signTransaction(xdr); }, }); return { data: true, error: false, errorCode: -1, errorMessage: "" }; @@ -117,8 +116,7 @@ async function registerProject( try { await tx.signAndSend({ signTransaction: async (xdr) => { - const { signedTxXdr } = await kit.signTransaction(xdr); - return signedTxXdr; + return await kit.signTransaction(xdr); }, }); return { data: true, error: false, errorCode: -1, errorMessage: "" }; @@ -169,8 +167,7 @@ async function updateConfig( try { await tx.signAndSend({ signTransaction: async (xdr) => { - const { signedTxXdr } = await kit.signTransaction(xdr); - return signedTxXdr; + return await kit.signTransaction(xdr); }, }); return { data: true, error: false, errorCode: -1, errorMessage: "" }; @@ -214,8 +211,7 @@ async function createProposal( try { const result = await tx.signAndSend({ signTransaction: async (xdr) => { - const { signedTxXdr } = await kit.signTransaction(xdr); - return signedTxXdr; + return await kit.signTransaction(xdr); }, }); return { @@ -264,8 +260,7 @@ async function voteToProposal( try { await tx.signAndSend({ signTransaction: async (xdr) => { - const { signedTxXdr } = await kit.signTransaction(xdr); - return signedTxXdr; + return await kit.signTransaction(xdr); }, }); return { data: true, error: false, errorCode: -1, errorMessage: "" };