aboutsummaryrefslogtreecommitdiff
path: root/lib/shopApi.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/shopApi.ts')
-rw-r--r--lib/shopApi.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/shopApi.ts b/lib/shopApi.ts
index 8179ff14d..7cc37a9db 100644
--- a/lib/shopApi.ts
+++ b/lib/shopApi.ts
@@ -24,7 +24,7 @@
-function subst(url: string, H_contract) {
+function subst(url: string, H_contract: string) {
url = url.replace("${H_contract}", H_contract);
url = url.replace("${$}", "$");
return url;
@@ -138,7 +138,7 @@ export function fetchPayment(H_contract: any, offering_url: any) {
* Offer a contract to the wallet after
* downloading it from the given URL.
*/
-function offerContractFrom(url) {
+function offerContractFrom(url: string) {
var contract_request = new XMLHttpRequest();
console.log("downloading contract from '" + url + "'");
contract_request.open("GET", url, true);