aboutsummaryrefslogtreecommitdiff
path: root/extension/lib/wallet/query.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-02-09 21:56:06 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-02-09 21:56:06 +0100
commit5e85cd8b8fa25ed3fbfc260b48bcad098978407a (patch)
tree3c875261e2c3fa2176911caefc4dcf225a04df74 /extension/lib/wallet/query.ts
parent42a0076f5951d303635b2e544aa66112cdb9abfe (diff)
downloadwallet-core-5e85cd8b8fa25ed3fbfc260b48bcad098978407a.tar.xz
new reserve creation protocol
Diffstat (limited to 'extension/lib/wallet/query.ts')
-rw-r--r--extension/lib/wallet/query.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/extension/lib/wallet/query.ts b/extension/lib/wallet/query.ts
index 82053138f..b82c85189 100644
--- a/extension/lib/wallet/query.ts
+++ b/extension/lib/wallet/query.ts
@@ -268,6 +268,10 @@ class QueryRoot {
* Get one object from a store by its key.
*/
get(storeName, key): Promise<any> {
+ if (key === void 0) {
+ throw Error("key must not be undefined");
+ }
+
const {resolve, promise} = openPromise();
const doGet = (tx) => {