From c8b894a893697cbad3059c350d715115c3a43b49 Mon Sep 17 00:00:00 2001 From: benesjan Date: Thu, 17 Aug 2023 10:20:13 +0000 Subject: [PATCH] options cleanup --- .../aztec.js/src/contract_deployer/deploy_method.ts | 8 ++++---- yarn-project/circuits.js/src/abis/abis.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/yarn-project/aztec.js/src/contract_deployer/deploy_method.ts b/yarn-project/aztec.js/src/contract_deployer/deploy_method.ts index 51eea3c8ddc8..4022e9b848aa 100644 --- a/yarn-project/aztec.js/src/contract_deployer/deploy_method.ts +++ b/yarn-project/aztec.js/src/contract_deployer/deploy_method.ts @@ -110,20 +110,20 @@ export class DeployMethod extends Bas * This function extends the 'send' method from the ContractFunctionInteraction class, * allowing us to send a transaction specifically for contract deployment. * - * @param options - An object containing various deployment options such as portalContract, contractAddressSalt, and from. + * @param options - Optional send method options object. * @returns A SentTx object that returns the receipt and the deployed contract instance. */ - public send(options: DeployOptions = {}): DeploySentTx { + public send(options: SendMethodOptions = {}): DeploySentTx { const txHashPromise = super.send(options).getTxHash(); return new DeploySentTx(this.abi, this.arc, txHashPromise); } /** * Simulate the request. - * @param options - Deployment options. + * @param options - Send method options. * @returns The simulated tx. */ - public simulate(options: DeployOptions): Promise { + public simulate(options: SendMethodOptions): Promise { return super.simulate(options); } } diff --git a/yarn-project/circuits.js/src/abis/abis.ts b/yarn-project/circuits.js/src/abis/abis.ts index bf4e6f1c64d4..0a863ff1d829 100644 --- a/yarn-project/circuits.js/src/abis/abis.ts +++ b/yarn-project/circuits.js/src/abis/abis.ts @@ -183,7 +183,7 @@ export function hashConstructor( * Computes a contract address. * @param wasm - A module providing low-level wasm access. * @param deployerPubKey - The pubkey of the contract deployer. - * @param contractAddrSalt - The salt used as 1 one of the inputs of the contract address computation. + * @param contractAddrSalt - The salt used as one of the inputs of the contract address computation. * @param fnTreeRoot - The function tree root of the contract being deployed. * @param constructorHash - The hash of the constructor. * @returns The contract address.