mirror of
https://github.com/status-im/nft-faucet.git
synced 2025-02-24 04:28:29 +00:00
22 lines
644 B
C#
22 lines
644 B
C#
namespace NftFaucet.Models;
|
|
|
|
public class IpfsBlockchainContext
|
|
{
|
|
public string Address { get; private set; }
|
|
public string SignedMessage { get; private set; }
|
|
|
|
public bool IsInitialized => !string.IsNullOrEmpty(Address) && !string.IsNullOrEmpty(SignedMessage);
|
|
|
|
public void Initialize(string address, string signedMessage)
|
|
{
|
|
if (string.IsNullOrEmpty(address))
|
|
throw new ArgumentNullException(nameof(address));
|
|
|
|
if (string.IsNullOrEmpty(signedMessage))
|
|
throw new ArgumentNullException(nameof(signedMessage));
|
|
|
|
Address = address;
|
|
SignedMessage = signedMessage;
|
|
}
|
|
}
|