1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

proper compare using lowercase (#864)

* proper compare using lowercase
This commit is contained in:
Alex Coseru 2021-06-25 15:56:34 +03:00 committed by GitHub
parent 3010a4f15b
commit b90aeb6549
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,7 +182,8 @@ export class OceanPool extends Pool {
if (tokens != null)
for (token of tokens) {
// TODO: Potential timing attack, left side: true
if (token !== this.oceanAddress) this.dtAddress = token
if (token.toLowerCase() !== this.oceanAddress.toLowerCase())
this.dtAddress = token
}
return this.dtAddress
}