private string GetHashInputFromNonFungibleToken() { if (NonFungibleToken == null) { return(null); } return(NonFungibleToken.GetHashInput()); }
// This method compares this and previous blocks and finds the non-fungible token being transacted (if any). // It actually returns the delta between two blocks, so the direction of the transaction is defined by the block type (send or receive). // Since non-fungible token info never changes, it is the same for send and receive blocks, but the finding logic is slightly different //public abstract INonFungibleToken GetNonFungibleTransaction(TransactionBlock previousBlock); public override string Print() { string result = base.Print(); result += $"AccountID: {AccountID}\n"; result += $"Balances: {JsonConvert.SerializeObject(Balances)}\n"; result += $"Fee: {JsonConvert.SerializeObject(Fee)}\n"; result += $"FeeCode: {FeeCode}\n"; result += $"FeeType: {FeeType.ToString()}\n"; if (NonFungibleToken != null) { result += $"NonFungibleToken: {NonFungibleToken.Print()}\n"; } else { result += $"NonFungibleToken: {NonFungibleToken}\n"; } return(result); }