Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(
public readonly address: string,
public readonly script: ScriptResponse,
private provider: ContractProvider,
private entrypoints?: EntrypointsResponse
) {
this.schema = Schema.fromRPCResponse({ script: this.script });
this.parameterSchema = ParameterSchema.fromRPCResponse({ script: this.script });
if (!this.entrypoints) {
this._initializeMethodsLegacy(address, provider);
} else {
this._initializeMethods(address, provider, this.entrypoints.entrypoints);
}
}