You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DeclarativeWorkloadModuleBase should just simply extend the WorkloadModuleBase class, which performs most of the initialization. Then the initializeWorkloadModule function can be overridden to perform the extra init step (after calling the super init).
This doesn't enumerate the objects, only the key names (string), whatever those are for array entries. You need for(const contractObject of roundArguments.contracts) {...} (instead of in)
DeclarativeWorkloadModuleBaseshould just simply extend theWorkloadModuleBaseclass, which performs most of the initialization. Then theinitializeWorkloadModulefunction can be overridden to perform the extra init step (after calling thesuperinit).caliper/packages/caliper-core/lib/worker/workload/declarative/declarative-workload-module-base.js
Line 24 in 64f0a67
this.something = {};insteadcaliper/packages/caliper-core/lib/worker/workload/declarative/declarative-workload-module-base.js
Line 88 in 64f0a67
caliper/packages/caliper-core/lib/worker/workload/declarative/declarative-workload-module-base.js
Line 96 in 64f0a67
for(const key of Object.keys(roundArguments)) { ... }to iterate through the keys of an object.caliper/packages/caliper-core/lib/worker/workload/declarative/declarative-workload-module-base.js
Line 89 in 64f0a67
caliper/packages/caliper-core/lib/worker/workload/declarative/declarative-workload-module-base.js
Line 95 in 64f0a67
for(const contractObject of roundArguments.contracts) {...}(instead ofin)caliper/packages/caliper-core/lib/worker/workload/declarative/declarative-workload-module-base.js
Line 97 in 64f0a67
caliper/packages/caliper-core/lib/worker/workload/declarative/declarative-workload-module-base.js
Line 98 in 64f0a67
caliper/packages/caliper-core/lib/worker/workload/declarative/contract.js
Lines 29 to 30 in 64f0a67
caliper/packages/caliper-core/lib/worker/workload/declarative/contract.js
Line 32 in 64f0a67
You need to construct an object for each function and store them: