Skip to content

Instantly share code, notes, and snippets.

@ItayPodhajcer
Last active January 16, 2020 08:41
Show Gist options
  • Save ItayPodhajcer/34eb0e21683ca2fa0abb986ff2b38ba9 to your computer and use it in GitHub Desktop.
Save ItayPodhajcer/34eb0e21683ca2fa0abb986ff2b38ba9 to your computer and use it in GitHub Desktop.
ethereum-event-azure-function-trigger/EthereumEventListener.ExtractEventData
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