Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Commit

Permalink
fix(sdk): fix transaction sending result status
Browse files Browse the repository at this point in the history
  • Loading branch information
LeilaWang committed Feb 26, 2020
1 parent b3d8fed commit 5f74c96
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const sendTransaction = async (query, connection) => {
return {
...query,
data: {
success: !!receipt,
txReceipt: receipt,
},
responseId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ export default async function confidentialTransferFrom({

return {
...response,
success: !!(response && response.txReceipt),
success: !!(response && response.success),
};
}
2 changes: 1 addition & 1 deletion packages/extension/src/ui/apis/asset/deposit.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ export default async function deposit({

return {
...response,
success: !!(response && response.txReceipt),
success: !!(response && response.success),
};
}

0 comments on commit 5f74c96

Please sign in to comment.