mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-26 15:41:29 +01:00
23 lines
612 B
C#
23 lines
612 B
C#
|
using System;
|
||
|
using NBitcoin;
|
||
|
|
||
|
namespace BTCPayServer.Data
|
||
|
{
|
||
|
public class AddressClaimDestination : IBitcoinLikeClaimDestination
|
||
|
{
|
||
|
public BitcoinAddress _bitcoinAddress;
|
||
|
|
||
|
public AddressClaimDestination(BitcoinAddress bitcoinAddress)
|
||
|
{
|
||
|
if (bitcoinAddress == null)
|
||
|
throw new ArgumentNullException(nameof(bitcoinAddress));
|
||
|
_bitcoinAddress = bitcoinAddress;
|
||
|
}
|
||
|
public BitcoinAddress Address => _bitcoinAddress;
|
||
|
public override string ToString()
|
||
|
{
|
||
|
return _bitcoinAddress.ToString();
|
||
|
}
|
||
|
}
|
||
|
}
|