Skip to content

Commit

Permalink
Add IColoredCoin.AssetId
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasDorier committed Nov 4, 2014
1 parent 4cdd3f2 commit ed7363c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions NBitcoin/Coin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ namespace NBitcoin
{
public interface IColoredCoin : ICoin
{
AssetId AssetId
{
get;
}
Coin Bearer
{
get;
Expand Down Expand Up @@ -112,6 +116,13 @@ public ColoredCoin(Asset asset, Coin bearer)
Bearer = bearer;
}

public AssetId AssetId
{
get
{
return Asset.Id;
}
}
public Asset Asset
{
get;
Expand Down

0 comments on commit ed7363c

Please sign in to comment.