aboutsummaryrefslogtreecommitdiff
path: root/src/webex/wxApi.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-10-15 18:30:02 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-10-15 18:30:02 +0200
commit03782f8aea043042aaa069de0b91cdb80fbb4679 (patch)
treecc8890eb060fe15cefa107c9261fc7e558d564b1 /src/webex/wxApi.ts
parent23633cf1be5ce8f1bc4d7823d1d561149cb6c8a8 (diff)
downloadwallet-core-03782f8aea043042aaa069de0b91cdb80fbb4679.tar.xz
derive history from db instead of storing it
Diffstat (limited to 'src/webex/wxApi.ts')
-rw-r--r--src/webex/wxApi.ts9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/webex/wxApi.ts b/src/webex/wxApi.ts
index 096d855e0..c1c6eb2d3 100644
--- a/src/webex/wxApi.ts
+++ b/src/webex/wxApi.ts
@@ -226,7 +226,7 @@ export function hashContract(contract: object): Promise<string> {
* the proposal is stored under.
*/
export function saveProposal(proposal: any): Promise<number> {
- return callBackend("save-proposal", proposal);
+ return callBackend("save-proposal", { proposal });
}
/**
@@ -244,13 +244,6 @@ export function queryPayment(url: string): Promise<QueryPaymentResult> {
}
/**
- * Add a new history item.
- */
-export function putHistory(historyEntry: any): Promise<void> {
- return callBackend("put-history-entry", { historyEntry });
-}
-
-/**
* Mark a payment as succeeded.
*/
export function paymentSucceeded(contractTermsHash: string, merchantSig: string): Promise<void> {