Update charge in tests and fix two build time warnings

This commit is contained in:
nicolas.dorier 2018-03-17 17:49:42 +09:00
parent 0d8affc68d
commit 81328b2667
3 changed files with 3 additions and 3 deletions

View file

@ -84,7 +84,7 @@ services:
- "bitcoin_datadir:/data" - "bitcoin_datadir:/data"
lightning-charged: lightning-charged:
image: shesek/lightning-charge:0.3.4 image: shesek/lightning-charge:0.3.5
environment: environment:
NETWORK: regtest NETWORK: regtest
API_TOKEN: foiewnccewuify API_TOKEN: foiewnccewuify

View file

@ -77,7 +77,7 @@ namespace BTCPayServer.Controllers
var onchainMethod = data.GetPaymentMethodDetails() as Payments.Bitcoin.BitcoinLikeOnChainPaymentMethod; var onchainMethod = data.GetPaymentMethodDetails() as Payments.Bitcoin.BitcoinLikeOnChainPaymentMethod;
if(onchainMethod != null) if(onchainMethod != null)
{ {
cryptoPayment.Address = onchainMethod.DepositAddress.ToString(); cryptoPayment.Address = onchainMethod.DepositAddress;
} }
cryptoPayment.Rate = FormatCurrency(data); cryptoPayment.Rate = FormatCurrency(data);
cryptoPayment.PaymentUrl = cryptoInfo.PaymentUrls.BIP21; cryptoPayment.PaymentUrl = cryptoInfo.PaymentUrls.BIP21;

View file

@ -615,7 +615,7 @@ namespace BTCPayServer.Services.Invoices
{ {
TxFee = bitcoinPaymentMethod.TxFee; TxFee = bitcoinPaymentMethod.TxFee;
FeeRate = bitcoinPaymentMethod.FeeRate; FeeRate = bitcoinPaymentMethod.FeeRate;
DepositAddress = bitcoinPaymentMethod.DepositAddress.ToString(); DepositAddress = bitcoinPaymentMethod.DepositAddress;
} }
var jobj = JObject.Parse(JsonConvert.SerializeObject(paymentMethod)); var jobj = JObject.Parse(JsonConvert.SerializeObject(paymentMethod));
PaymentMethodDetails = jobj; PaymentMethodDetails = jobj;