@aztec/cli-wallet 5.0.0-rc.1 → 5.0.0-rc.2

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.
@@ -86,7 +86,7 @@ export function parsePaymentMethod(payment, log, db, estimateOnly) {
86
86
  if (!parsed.asset) {
87
87
  throw new Error('Missing "asset" in payment option');
88
88
  }
89
- return AztecAddress.fromString(parsed.asset);
89
+ return AztecAddress.fromStringUnsafe(parsed.asset);
90
90
  };
91
91
  return async (wallet, from, gasSettings)=>{
92
92
  switch(parsed.method){
@@ -64,7 +64,7 @@ export class CLIWallet extends BaseWallet {
64
64
  const alias = key.includes(':') ? key.slice(key.indexOf(':') + 1) : key;
65
65
  return {
66
66
  alias,
67
- item: AztecAddress.fromString(value)
67
+ item: AztecAddress.fromStringUnsafe(value)
68
68
  };
69
69
  }));
70
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/cli-wallet",
3
- "version": "5.0.0-rc.1",
3
+ "version": "5.0.0-rc.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dest/cmds/index.js",
@@ -67,20 +67,20 @@
67
67
  ]
68
68
  },
69
69
  "dependencies": {
70
- "@aztec/accounts": "5.0.0-rc.1",
71
- "@aztec/aztec.js": "5.0.0-rc.1",
72
- "@aztec/bb.js": "5.0.0-rc.1",
73
- "@aztec/cli": "5.0.0-rc.1",
74
- "@aztec/entrypoints": "5.0.0-rc.1",
75
- "@aztec/ethereum": "5.0.0-rc.1",
76
- "@aztec/foundation": "5.0.0-rc.1",
77
- "@aztec/kv-store": "5.0.0-rc.1",
78
- "@aztec/noir-contracts.js": "5.0.0-rc.1",
79
- "@aztec/noir-noirc_abi": "5.0.0-rc.1",
80
- "@aztec/pxe": "5.0.0-rc.1",
81
- "@aztec/standard-contracts": "5.0.0-rc.1",
82
- "@aztec/stdlib": "5.0.0-rc.1",
83
- "@aztec/wallet-sdk": "5.0.0-rc.1",
70
+ "@aztec/accounts": "5.0.0-rc.2",
71
+ "@aztec/aztec.js": "5.0.0-rc.2",
72
+ "@aztec/bb.js": "5.0.0-rc.2",
73
+ "@aztec/cli": "5.0.0-rc.2",
74
+ "@aztec/entrypoints": "5.0.0-rc.2",
75
+ "@aztec/ethereum": "5.0.0-rc.2",
76
+ "@aztec/foundation": "5.0.0-rc.2",
77
+ "@aztec/kv-store": "5.0.0-rc.2",
78
+ "@aztec/noir-contracts.js": "5.0.0-rc.2",
79
+ "@aztec/noir-noirc_abi": "5.0.0-rc.2",
80
+ "@aztec/pxe": "5.0.0-rc.2",
81
+ "@aztec/standard-contracts": "5.0.0-rc.2",
82
+ "@aztec/stdlib": "5.0.0-rc.2",
83
+ "@aztec/wallet-sdk": "5.0.0-rc.2",
84
84
  "commander": "^12.1.0",
85
85
  "inquirer": "^10.1.8",
86
86
  "source-map-support": "^0.5.21",
@@ -137,7 +137,7 @@ export function parsePaymentMethod(
137
137
  if (!parsed.asset) {
138
138
  throw new Error('Missing "asset" in payment option');
139
139
  }
140
- return AztecAddress.fromString(parsed.asset);
140
+ return AztecAddress.fromStringUnsafe(parsed.asset);
141
141
  };
142
142
 
143
143
  return async (wallet: Wallet, from: AztecAddress, gasSettings: GasSettings) => {
@@ -95,7 +95,7 @@ export class CLIWallet extends BaseWallet {
95
95
  return Promise.resolve(
96
96
  accounts.map(({ key, value }) => {
97
97
  const alias = key.includes(':') ? key.slice(key.indexOf(':') + 1) : key;
98
- return { alias, item: AztecAddress.fromString(value) };
98
+ return { alias, item: AztecAddress.fromStringUnsafe(value) };
99
99
  }),
100
100
  );
101
101
  }