mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
lowercase account testing
This commit is contained in:
parent
25673f9593
commit
a2fbbb3765
@ -408,7 +408,7 @@ export class OceanPool extends Pool {
|
|||||||
})
|
})
|
||||||
|
|
||||||
for (let i = 0; i < events.length; i++) {
|
for (let i = 0; i < events.length; i++) {
|
||||||
if (!account || events[i].returnValues[1] === account)
|
if (!account || events[i].returnValues[1].toLowerCase() === account.toLowerCase())
|
||||||
result.push(await this.getPoolDetails(events[i].returnValues[0]))
|
result.push(await this.getPoolDetails(events[i].returnValues[0]))
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
@ -447,7 +447,7 @@ export class OceanPool extends Pool {
|
|||||||
toBlock: 'latest'
|
toBlock: 'latest'
|
||||||
})
|
})
|
||||||
for (let i = 0; i < events.length; i++) {
|
for (let i = 0; i < events.length; i++) {
|
||||||
if (!account || events[i].returnValues[0] === account)
|
if (!account || events[i].returnValues[0].toLowerCase() === account.toLowerCase())
|
||||||
results.push(await this.getEventData('swap', poolAddress, dtAddress, events[i]))
|
results.push(await this.getEventData('swap', poolAddress, dtAddress, events[i]))
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -457,7 +457,7 @@ export class OceanPool extends Pool {
|
|||||||
toBlock: 'latest'
|
toBlock: 'latest'
|
||||||
})
|
})
|
||||||
for (let i = 0; i < events.length; i++) {
|
for (let i = 0; i < events.length; i++) {
|
||||||
if (!account || events[i].returnValues[0] === account)
|
if (!account || events[i].returnValues[0].toLowerCase() === account.toLowerCase())
|
||||||
results.push(await this.getEventData('join', poolAddress, dtAddress, events[i]))
|
results.push(await this.getEventData('join', poolAddress, dtAddress, events[i]))
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -467,7 +467,7 @@ export class OceanPool extends Pool {
|
|||||||
toBlock: 'latest'
|
toBlock: 'latest'
|
||||||
})
|
})
|
||||||
for (let i = 0; i < events.length; i++) {
|
for (let i = 0; i < events.length; i++) {
|
||||||
if (!account || events[i].returnValues[0] === account)
|
if (!account || events[i].returnValues[0].toLowerCase() === account.toLowerCase())
|
||||||
results.push(await this.getEventData('exit', poolAddress, dtAddress, events[i]))
|
results.push(await this.getEventData('exit', poolAddress, dtAddress, events[i]))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user