add tests, do not returns bitcoinAddress field if not supported by the invoice

This commit is contained in:
nicolas.dorier
2018-01-13 22:01:09 +09:00
parent e3cc589ebb
commit 6b4eeff3f1
5 changed files with 66 additions and 7 deletions

View File

@@ -172,8 +172,6 @@ namespace BTCPayServer.Controllers
entity.TxFee = GetTxFee(storeBlob, await gettingFee);
entity.Rate = await gettingRate;
}
// So users does not crash if they check depositAddress is not set
entity.DepositAddress = cryptoDatas.First().Value.DepositAddress;
#pragma warning restore CS0618
}