diff options
Diffstat (limited to 'src/wxBackend.ts')
-rw-r--r-- | src/wxBackend.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wxBackend.ts b/src/wxBackend.ts index f556d0de4..f738a953c 100644 --- a/src/wxBackend.ts +++ b/src/wxBackend.ts @@ -220,6 +220,12 @@ function makeHandlers(db: IDBDatabase, } return wallet.getPreCoins(detail.exchangeBaseUrl); }, + ["get-denoms"]: function (detail, sender) { + if (typeof detail.exchangeBaseUrl !== "string") { + return Promise.reject(Error("exchangBaseUrl missing")); + } + return wallet.getDenoms(detail.exchangeBaseUrl); + }, ["refresh-coin"]: function (detail, sender) { if (typeof detail.coinPub !== "string") { return Promise.reject(Error("coinPub missing")); |