Fix fetching xpub for trezor

This commit is contained in:
nicolas.dorier
2019-12-04 16:34:25 +09:00
parent 49c70d9b04
commit 3e08581e9b
2 changed files with 10 additions and 3 deletions

View File

@@ -198,7 +198,7 @@ namespace BTCPayServer.Controllers
{
continue;
}
await websocketHelper.Send("{ \"info\": \"ok\"}", cancellationToken);
var askedXpub = JObject.Parse(await websocketHelper.NextMessageAsync(cancellationToken));
var addressType = askedXpub["addressType"].Value<string>();
var accountNumber = askedXpub["accountNumber"].Value<int>();