Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
if (!this.address) {
return Promise.reject('Contract has not been deployed!');
}
try {
return await this.prepareTx(
new Transaction(
{
...params,
toAddr: this.address,
data: JSON.stringify(data),
},
this.provider,
TxStatus.Initialised,
toDs,
),
attempts,
interval,
false,
);
} catch (err) {
throw err;
}
}