From 250d4256ca54067e167be43081ae55d192f16b5d Mon Sep 17 00:00:00 2001 From: Craig Blake <40273884+craigwblake-openlaw@users.noreply.github.com> Date: Tue, 11 Aug 2020 09:30:09 -0400 Subject: [PATCH] Fix address match to be case-insensitive for event filter. (#263) --- .../adridadou/openlaw/oracles/EthereumContractEventOracle.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/main/scala/org/adridadou/openlaw/oracles/EthereumContractEventOracle.scala b/shared/src/main/scala/org/adridadou/openlaw/oracles/EthereumContractEventOracle.scala index 3c570e6a9..003fa1b2b 100644 --- a/shared/src/main/scala/org/adridadou/openlaw/oracles/EthereumContractEventOracle.scala +++ b/shared/src/main/scala/org/adridadou/openlaw/oracles/EthereumContractEventOracle.scala @@ -96,7 +96,7 @@ final case class EthereumEventFilterOracle( Some(OpenlawString(eventType)), Some(OpenlawBoolean(true)) ) - if address === event.smartContractAddress.withLeading0x && eventType === event.eventType => + if address.toLowerCase === event.smartContractAddress.withLeading0x.toLowerCase && eventType === event.eventType => val execution = EthereumEventFilterExecution( event.executionDate, SuccessfulExecution,