Skip to content

Commit

Permalink
Fix signing and sending
Browse files Browse the repository at this point in the history
  • Loading branch information
tupui committed Dec 9, 2024
1 parent 7258ee0 commit 0bd0e37
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
Binary file modified dapp/bun.lockb
Binary file not shown.
20 changes: 10 additions & 10 deletions dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
15 changes: 5 additions & 10 deletions dapp/src/service/WriteContractService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ async function commitHash(commit_hash: string): Promise<Response<boolean>> {
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: "" };
Expand Down Expand Up @@ -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: "" };
Expand Down Expand Up @@ -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: "" };
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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: "" };
Expand Down

0 comments on commit 0bd0e37

Please sign in to comment.