mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
make service endpoint / service name check case insensitive
This commit is contained in:
parent
3ba3ccb6b5
commit
c4305d6758
@ -46,7 +46,9 @@ export class Provider {
|
|||||||
serviceName: string
|
serviceName: string
|
||||||
): ServiceEndpoint {
|
): ServiceEndpoint {
|
||||||
if (!servicesEndpoints) return null
|
if (!servicesEndpoints) return null
|
||||||
return servicesEndpoints.find((s) => s.serviceName === serviceName) as ServiceEndpoint
|
return servicesEndpoints.find(
|
||||||
|
(s) => s.serviceName.toLowerCase() === serviceName.toLowerCase()
|
||||||
|
) as ServiceEndpoint
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -78,7 +78,7 @@ const ifpsFile: Files = {
|
|||||||
files: [
|
files: [
|
||||||
{
|
{
|
||||||
type: 'ipfs',
|
type: 'ipfs',
|
||||||
hash: 'QmdMBw956S3i2H2ioS9cERrtxoLJuSsfjzCvkqoDgUa2xm'
|
hash: 'QmRhsp7eghZtW4PktPC2wAHdKoy2LiF1n6UXMKmAhqQJUA'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user