Skip to content

Commit

Permalink
add helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
fyannch committed Jul 25, 2024
1 parent 7631696 commit dbd2cd6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions contract/Forest/ForestContract_Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -385,4 +385,15 @@ private void RequireMaxBatchCancelListCountSet()
State.MaxBatchCancelListCount.Value = DefaultMaxBatchCancelListCount;
}
}

private RoyaltyInfo GetRoyaltyInfo(string nftSymbol)
{
var symbol = TransferCollectionSymbol(nftSymbol);
if (string.IsNullOrEmpty(symbol))
{
return null;
}

return State.RoyaltyInfoMap[symbol];
}
}

0 comments on commit dbd2cd6

Please sign in to comment.