1
0
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:
paulo-ocean 2024-07-01 14:54:03 +01:00
parent 3ba3ccb6b5
commit c4305d6758
2 changed files with 4 additions and 2 deletions

View File

@ -46,7 +46,9 @@ export class Provider {
serviceName: string
): ServiceEndpoint {
if (!servicesEndpoints) return null
return servicesEndpoints.find((s) => s.serviceName === serviceName) as ServiceEndpoint
return servicesEndpoints.find(
(s) => s.serviceName.toLowerCase() === serviceName.toLowerCase()
) as ServiceEndpoint
}
/**

View File

@ -78,7 +78,7 @@ const ifpsFile: Files = {
files: [
{
type: 'ipfs',
hash: 'QmdMBw956S3i2H2ioS9cERrtxoLJuSsfjzCvkqoDgUa2xm'
hash: 'QmRhsp7eghZtW4PktPC2wAHdKoy2LiF1n6UXMKmAhqQJUA'
}
]
}