Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
options cleanup
Browse files Browse the repository at this point in the history
benesjan committed Aug 17, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 9c69168 commit c8b894a
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions yarn-project/aztec.js/src/contract_deployer/deploy_method.ts
Original file line number Diff line number Diff line change
@@ -110,20 +110,20 @@ export class DeployMethod<TContract extends ContractBase = Contract> 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<TContract> {
public send(options: SendMethodOptions = {}): DeploySentTx<TContract> {
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<Tx> {
public simulate(options: SendMethodOptions): Promise<Tx> {
return super.simulate(options);
}
}
2 changes: 1 addition & 1 deletion yarn-project/circuits.js/src/abis/abis.ts
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit c8b894a

Please sign in to comment.