Example #1
0
 internal static IImmutableDictionary <string, IValue?> GetUpdatedRawStates(
     this IAccountStateDelta delta) =>
 delta.GetUpdatedStates()
 .Select(pair =>
         new KeyValuePair <string, IValue?>(
             ToStateKey(pair.Key),
             pair.Value))
 .Union(
     delta.GetUpdatedBalances().Select(pair =>
                                       new KeyValuePair <string, IValue?>(
                                           ToFungibleAssetKey(pair.Key),
                                           (Integer)pair.Value.RawValue))).ToImmutableDictionary();