diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-10-15 18:30:02 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-10-15 18:30:02 +0200 |
commit | 03782f8aea043042aaa069de0b91cdb80fbb4679 (patch) | |
tree | cc8890eb060fe15cefa107c9261fc7e558d564b1 /src/webex/wxApi.ts | |
parent | 23633cf1be5ce8f1bc4d7823d1d561149cb6c8a8 (diff) |
derive history from db instead of storing it
Diffstat (limited to 'src/webex/wxApi.ts')
-rw-r--r-- | src/webex/wxApi.ts | 9 |
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> { |