mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
parent
3010a4f15b
commit
b90aeb6549
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user