Last active
January 16, 2020 08:41
-
-
Save ItayPodhajcer/34eb0e21683ca2fa0abb986ff2b38ba9 to your computer and use it in GitHub Desktop.
ethereum-event-azure-function-trigger/EthereumEventListener.ExtractEventData
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private EthereumEventData ExtractEventData(List<ParameterOutput> eventParams, FilterLog log) | |
{ | |
Dictionary<string, string> values = eventParams.ToDictionary(eventParam => eventParam.Parameter.Name, eventParam => eventParam.Result.ToString()); | |
return new EthereumEventData | |
{ | |
Values = values, | |
BlockNumber = log.BlockNumber | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment