Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public getAllCoreInstance(): any[] {
const result: any[] = [];
const allArtifacts = requestArtifacts.getAllArtifactsForNetwork(this.web3Single.networkName);
for ( const key in allArtifacts ) {
if (key.slice(0, 2) === '0x' && allArtifacts[key].split('/')[0] === 'RequestCore') {
result.push( this.web3Single.getContractInstance(key) );
}
}
return result;
}