1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

fix compressed deps

This commit is contained in:
Sebastian Gerske 2018-11-22 11:38:00 +01:00
parent 8a68715fce
commit 42959d8fc7

View File

@ -131,8 +131,9 @@ export default class ServiceAgreementTemplate extends OceanBase {
const mappedDependencyTimeoutFlags: number[] = []
this.template.Methods.forEach((m, i) => {
mappedDependencies.push(dependencies.findIndex((d) => d === m.name) > -1 ? i : 0)
mappedDependencyTimeoutFlags.push(dependencyTimeoutFlags[i] ? dependencyTimeoutFlags[i] : 0)
const di = dependencies.findIndex((d) => d === m.name)
mappedDependencies.push(di > -1 ? 1 : 0)
mappedDependencyTimeoutFlags.push(dependencyTimeoutFlags[i] ? 1 : 0)
})
Logger.log("========================")