From b504a5218ad99c04de8077f222747334f53d6ac0 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 12 May 2020 15:51:40 +0530 Subject: versions for android --- src/android/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/android/index.ts') diff --git a/src/android/index.ts b/src/android/index.ts index 019fe1fb3..36a3d47a5 100644 --- a/src/android/index.ts +++ b/src/android/index.ts @@ -33,6 +33,7 @@ import { } from "../util/http"; import { NodeHttpLib } from "../headless/NodeHttpLib"; import { WalletNotification } from "../types/notifications"; +import { WALLET_EXCHANGE_PROTOCOL_VERSION, WALLET_MERCHANT_PROTOCOL_VERSION } from "../operations/versions"; // @ts-ignore: special built-in module //import akono = require("akono"); @@ -154,7 +155,12 @@ class AndroidWalletMessageHandler { console.error("Error during wallet retry loop", e); }); this.wp.resolve(w); - return {}; + return { + supported_protocol_versions: { + exchange: WALLET_EXCHANGE_PROTOCOL_VERSION, + merchant: WALLET_MERCHANT_PROTOCOL_VERSION, + } + }; } case "abortProposal": { const wallet = await this.wp.promise; -- cgit v1.2.3