@aztec/cli-wallet 3.0.0-nightly.20251118 → 3.0.0-nightly.20251119

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ export async function authorizeAction(wallet, from, functionName, caller, functi
7
7
  if (isPrivate) {
8
8
  throw new Error('Cannot authorize private function. To allow a third party to call a private function, please create an authorization witness via the create-authwit command');
9
9
  }
10
- const contract = await Contract.at(contractAddress, contractArtifact, wallet);
10
+ const contract = Contract.at(contractAddress, contractArtifact, wallet);
11
11
  const action = contract.methods[functionName](...functionArgs);
12
12
  const setAuthwitnessInteraction = await SetPublicAuthwitContractInteraction.create(wallet, from, {
13
13
  caller,
@@ -5,7 +5,7 @@ export async function createAuthwit(wallet, from, functionName, caller, function
5
5
  if (!isPrivate) {
6
6
  throw new Error('Cannot create an authwit for a public function. To allow a third party to call a public function, please authorize the action via the authorize-action command');
7
7
  }
8
- const contract = await Contract.at(contractAddress, contractArtifact, wallet);
8
+ const contract = Contract.at(contractAddress, contractArtifact, wallet);
9
9
  const call = await contract.methods[functionName](...functionArgs).getFunctionCall();
10
10
  const witness = await wallet.createAuthWit(from, {
11
11
  caller,
@@ -6,7 +6,7 @@ import path from 'path';
6
6
  import { printProfileResult } from '../utils/profiling.js';
7
7
  export async function profile(wallet, node, from, functionName, functionArgsIn, contractArtifactPath, contractAddress, debugOutputPath, feeOpts, authWitnesses, log) {
8
8
  const { functionArgs, contractArtifact } = await prepTx(contractArtifactPath, functionName, functionArgsIn, log);
9
- const contract = await Contract.at(contractAddress, contractArtifact, wallet);
9
+ const contract = Contract.at(contractAddress, contractArtifact, wallet);
10
10
  const call = contract.methods[functionName](...functionArgs);
11
11
  const { paymentMethod, gasSettings } = await feeOpts.toUserFeeOptions(node, wallet, from);
12
12
  const result = await call.profile({
package/dest/cmds/send.js CHANGED
@@ -4,7 +4,7 @@ import { DEFAULT_TX_TIMEOUT_S } from '../utils/cli_wallet_and_node_wrapper.js';
4
4
  import { printProfileResult } from '../utils/profiling.js';
5
5
  export async function send(wallet, node, from, functionName, functionArgsIn, contractArtifactPath, contractAddress, wait, cancellable, feeOpts, authWitnesses, verbose, log) {
6
6
  const { functionArgs, contractArtifact } = await prepTx(contractArtifactPath, functionName, functionArgsIn, log);
7
- const contract = await Contract.at(contractAddress, contractArtifact, wallet);
7
+ const contract = Contract.at(contractAddress, contractArtifact, wallet);
8
8
  const call = contract.methods[functionName](...functionArgs);
9
9
  const { paymentMethod, gasSettings } = await feeOpts.toUserFeeOptions(node, wallet, from);
10
10
  const sendOptions = {
@@ -5,7 +5,7 @@ import { printAuthorizations } from '../utils/authorizations.js';
5
5
  import { printProfileResult } from '../utils/profiling.js';
6
6
  export async function simulate(wallet, node, from, functionName, functionArgsIn, contractArtifactPath, contractAddress, feeOpts, authWitnesses, verbose, log) {
7
7
  const { functionArgs, contractArtifact } = await prepTx(contractArtifactPath, functionName, functionArgsIn, log);
8
- const contract = await Contract.at(contractAddress, contractArtifact, wallet);
8
+ const contract = Contract.at(contractAddress, contractArtifact, wallet);
9
9
  const call = contract.methods[functionName](...functionArgs);
10
10
  const { paymentMethod, gasSettings } = await feeOpts.toUserFeeOptions(node, wallet, from);
11
11
  const simulationResult = await call.simulate({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/cli-wallet",
3
- "version": "3.0.0-nightly.20251118",
3
+ "version": "3.0.0-nightly.20251119",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dest/cmds/index.js",
@@ -67,18 +67,18 @@
67
67
  ]
68
68
  },
69
69
  "dependencies": {
70
- "@aztec/accounts": "3.0.0-nightly.20251118",
71
- "@aztec/aztec.js": "3.0.0-nightly.20251118",
72
- "@aztec/bb.js": "3.0.0-nightly.20251118",
73
- "@aztec/cli": "3.0.0-nightly.20251118",
74
- "@aztec/entrypoints": "3.0.0-nightly.20251118",
75
- "@aztec/ethereum": "3.0.0-nightly.20251118",
76
- "@aztec/foundation": "3.0.0-nightly.20251118",
77
- "@aztec/kv-store": "3.0.0-nightly.20251118",
78
- "@aztec/noir-contracts.js": "3.0.0-nightly.20251118",
79
- "@aztec/noir-noirc_abi": "3.0.0-nightly.20251118",
80
- "@aztec/pxe": "3.0.0-nightly.20251118",
81
- "@aztec/stdlib": "3.0.0-nightly.20251118",
70
+ "@aztec/accounts": "3.0.0-nightly.20251119",
71
+ "@aztec/aztec.js": "3.0.0-nightly.20251119",
72
+ "@aztec/bb.js": "3.0.0-nightly.20251119",
73
+ "@aztec/cli": "3.0.0-nightly.20251119",
74
+ "@aztec/entrypoints": "3.0.0-nightly.20251119",
75
+ "@aztec/ethereum": "3.0.0-nightly.20251119",
76
+ "@aztec/foundation": "3.0.0-nightly.20251119",
77
+ "@aztec/kv-store": "3.0.0-nightly.20251119",
78
+ "@aztec/noir-contracts.js": "3.0.0-nightly.20251119",
79
+ "@aztec/noir-noirc_abi": "3.0.0-nightly.20251119",
80
+ "@aztec/pxe": "3.0.0-nightly.20251119",
81
+ "@aztec/stdlib": "3.0.0-nightly.20251119",
82
82
  "commander": "^12.1.0",
83
83
  "inquirer": "^10.1.8",
84
84
  "source-map-support": "^0.5.21",
@@ -30,7 +30,7 @@ export async function authorizeAction(
30
30
  );
31
31
  }
32
32
 
33
- const contract = await Contract.at(contractAddress, contractArtifact, wallet);
33
+ const contract = Contract.at(contractAddress, contractArtifact, wallet);
34
34
  const action = contract.methods[functionName](...functionArgs);
35
35
 
36
36
  const setAuthwitnessInteraction = await SetPublicAuthwitContractInteraction.create(
@@ -28,7 +28,7 @@ export async function createAuthwit(
28
28
  );
29
29
  }
30
30
 
31
- const contract = await Contract.at(contractAddress, contractArtifact, wallet);
31
+ const contract = Contract.at(contractAddress, contractArtifact, wallet);
32
32
  const call = await contract.methods[functionName](...functionArgs).getFunctionCall();
33
33
 
34
34
  const witness = await wallet.createAuthWit(from, { caller, call });
@@ -28,7 +28,7 @@ export async function profile(
28
28
  ) {
29
29
  const { functionArgs, contractArtifact } = await prepTx(contractArtifactPath, functionName, functionArgsIn, log);
30
30
 
31
- const contract = await Contract.at(contractAddress, contractArtifact, wallet);
31
+ const contract = Contract.at(contractAddress, contractArtifact, wallet);
32
32
  const call = contract.methods[functionName](...functionArgs);
33
33
 
34
34
  const { paymentMethod, gasSettings } = await feeOpts.toUserFeeOptions(node, wallet, from);
package/src/cmds/send.ts CHANGED
@@ -27,7 +27,7 @@ export async function send(
27
27
  ) {
28
28
  const { functionArgs, contractArtifact } = await prepTx(contractArtifactPath, functionName, functionArgsIn, log);
29
29
 
30
- const contract = await Contract.at(contractAddress, contractArtifact, wallet);
30
+ const contract = Contract.at(contractAddress, contractArtifact, wallet);
31
31
  const call = contract.methods[functionName](...functionArgs);
32
32
 
33
33
  const { paymentMethod, gasSettings } = await feeOpts.toUserFeeOptions(node, wallet, from);
@@ -27,7 +27,7 @@ export async function simulate(
27
27
  ) {
28
28
  const { functionArgs, contractArtifact } = await prepTx(contractArtifactPath, functionName, functionArgsIn, log);
29
29
 
30
- const contract = await Contract.at(contractAddress, contractArtifact, wallet);
30
+ const contract = Contract.at(contractAddress, contractArtifact, wallet);
31
31
  const call = contract.methods[functionName](...functionArgs);
32
32
  const { paymentMethod, gasSettings } = await feeOpts.toUserFeeOptions(node, wallet, from);
33
33
  const simulationResult = await call.simulate({