@aztec/bot 3.0.2 → 3.0.3-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.
package/dest/factory.js CHANGED
@@ -38,8 +38,8 @@ export class BotFactory {
38
38
  * Initializes a new bot by setting up the sender account, registering the recipient,
39
39
  * deploying the token contract, and minting tokens if necessary.
40
40
  */ async setup() {
41
- const recipient = (await this.wallet.createAccount()).address;
42
41
  const defaultAccountAddress = await this.setupAccount();
42
+ const recipient = (await this.wallet.createAccount()).address;
43
43
  const token = await this.setupToken(defaultAccountAddress);
44
44
  await this.mintTokens(token, defaultAccountAddress);
45
45
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/bot",
3
- "version": "3.0.2",
3
+ "version": "3.0.3-rc.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dest/index.js",
@@ -54,18 +54,18 @@
54
54
  ]
55
55
  },
56
56
  "dependencies": {
57
- "@aztec/accounts": "3.0.2",
58
- "@aztec/aztec.js": "3.0.2",
59
- "@aztec/entrypoints": "3.0.2",
60
- "@aztec/ethereum": "3.0.2",
61
- "@aztec/foundation": "3.0.2",
62
- "@aztec/kv-store": "3.0.2",
63
- "@aztec/noir-contracts.js": "3.0.2",
64
- "@aztec/noir-protocol-circuits-types": "3.0.2",
65
- "@aztec/protocol-contracts": "3.0.2",
66
- "@aztec/stdlib": "3.0.2",
67
- "@aztec/telemetry-client": "3.0.2",
68
- "@aztec/test-wallet": "3.0.2",
57
+ "@aztec/accounts": "3.0.3-rc.2",
58
+ "@aztec/aztec.js": "3.0.3-rc.2",
59
+ "@aztec/entrypoints": "3.0.3-rc.2",
60
+ "@aztec/ethereum": "3.0.3-rc.2",
61
+ "@aztec/foundation": "3.0.3-rc.2",
62
+ "@aztec/kv-store": "3.0.3-rc.2",
63
+ "@aztec/noir-contracts.js": "3.0.3-rc.2",
64
+ "@aztec/noir-protocol-circuits-types": "3.0.3-rc.2",
65
+ "@aztec/protocol-contracts": "3.0.3-rc.2",
66
+ "@aztec/stdlib": "3.0.3-rc.2",
67
+ "@aztec/telemetry-client": "3.0.3-rc.2",
68
+ "@aztec/test-wallet": "3.0.3-rc.2",
69
69
  "source-map-support": "^0.5.21",
70
70
  "tslib": "^2.4.0",
71
71
  "zod": "^3.23.8"
package/src/factory.ts CHANGED
@@ -54,8 +54,8 @@ export class BotFactory {
54
54
  node: AztecNode;
55
55
  recipient: AztecAddress;
56
56
  }> {
57
- const recipient = (await this.wallet.createAccount()).address;
58
57
  const defaultAccountAddress = await this.setupAccount();
58
+ const recipient = (await this.wallet.createAccount()).address;
59
59
  const token = await this.setupToken(defaultAccountAddress);
60
60
  await this.mintTokens(token, defaultAccountAddress);
61
61
  return { wallet: this.wallet, defaultAccountAddress, token, node: this.aztecNode, recipient };