From 87f981d91c952e7351a06b42aa88d2401addc8f2 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 31 May 2017 11:56:26 +0200 Subject: improve backend / content script messaging --- src/webex/wxBackend.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/webex/wxBackend.ts') diff --git a/src/webex/wxBackend.ts b/src/webex/wxBackend.ts index 49f6e7112..816ce0251 100644 --- a/src/webex/wxBackend.ts +++ b/src/webex/wxBackend.ts @@ -285,15 +285,15 @@ function makeHandlers(db: IDBDatabase, return Promise.resolve(); }, ["payment-succeeded"]: (detail, sender) => { - const contractHash = detail.contractHash; + const contractTermsHash = detail.contractTermsHash; const merchantSig = detail.merchantSig; - if (!contractHash) { + if (!contractTermsHash) { return Promise.reject(Error("contractHash missing")); } if (!merchantSig) { return Promise.reject(Error("merchantSig missing")); } - return wallet.paymentSucceeded(contractHash, merchantSig); + return wallet.paymentSucceeded(contractTermsHash, merchantSig); }, }; } -- cgit v1.2.3