Skip to content

Commit 2da137f

Browse files
authored
Merge pull request #101 from jaybbbb/jayb/case-insensitive
add toLowerCase
2 parents b6c3dab + 080d7a3 commit 2da137f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

composes/docker-compose.common.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ services:
55
context: ../
66
dockerfile: ./Dockerfile
77
environment:
8-
VERSION: v2.1.4
8+
VERSION: v2.1.5

lib/bridgeutils.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ class BridgeUtils {
151151
jsonInterface: nodeConfig.contract._jsonInterface
152152
})(log);
153153
if(receipt.event !== functionSig) continue;
154-
if(receipt.transactionHash != txhash ||
155-
receipt.returnValues.amount !== data.uints[0] ||
156-
receipt.returnValues.decimal !== (data.uints[1]).toString() ||
157-
receipt.returnValues.token !== data.token
154+
if(receipt.transactionHash.toLowerCase() != txhash ||
155+
receipt.returnValues.amount.toLowerCase() !== data.uints[0] ||
156+
receipt.returnValues.decimal.toLowerCase() !== (data.uints[1]).toString() ||
157+
receipt.returnValues.token.toLowerCase() !== data.token
158158
) continue;
159159
return true;
160160
}

0 commit comments

Comments
 (0)