@@ -19,7 +19,7 @@ import { createEthereumChain, createExtendedL1Client } from '@aztec/ethereum';
1919import { Fr } from '@aztec/foundation/fields' ;
2020import { Timer } from '@aztec/foundation/timer' ;
2121import { AMMContract } from '@aztec/noir-contracts.js/AMM' ;
22- import { EasyPrivateTokenContract } from '@aztec/noir-contracts.js/EasyPrivateToken ' ;
22+ import { PrivateTokenContract } from '@aztec/noir-contracts.js/PrivateToken ' ;
2323import { TokenContract } from '@aztec/noir-contracts.js/Token' ;
2424import type { AztecNode , AztecNodeAdmin } from '@aztec/stdlib/interfaces/client' ;
2525import { deriveSigningKey } from '@aztec/stdlib/keys' ;
@@ -189,20 +189,17 @@ export class BotFactory {
189189 * @param wallet - Wallet to deploy the token contract from.
190190 * @returns The TokenContract instance.
191191 */
192- private async setupToken (
193- wallet : AccountWallet ,
194- sender : AztecAddress ,
195- ) : Promise < TokenContract | EasyPrivateTokenContract > {
196- let deploy : DeployMethod < TokenContract | EasyPrivateTokenContract > ;
192+ private async setupToken ( wallet : AccountWallet , sender : AztecAddress ) : Promise < TokenContract | PrivateTokenContract > {
193+ let deploy : DeployMethod < TokenContract | PrivateTokenContract > ;
197194 const deployOpts : DeployOptions = {
198195 from : sender ,
199196 contractAddressSalt : this . config . tokenSalt ,
200197 universalDeploy : true ,
201198 } ;
202199 if ( this . config . contract === SupportedTokenContracts . TokenContract ) {
203200 deploy = TokenContract . deploy ( wallet , sender , 'BotToken' , 'BOT' , 18 ) ;
204- } else if ( this . config . contract === SupportedTokenContracts . EasyPrivateTokenContract ) {
205- deploy = EasyPrivateTokenContract . deploy ( wallet , MINT_BALANCE , sender ) ;
201+ } else if ( this . config . contract === SupportedTokenContracts . PrivateTokenContract ) {
202+ deploy = PrivateTokenContract . deploy ( wallet , MINT_BALANCE , sender ) ;
206203 deployOpts . skipInstancePublication = true ;
207204 deployOpts . skipClassPublication = true ;
208205 deployOpts . skipInitialization = false ;
@@ -358,7 +355,7 @@ export class BotFactory {
358355 * Mints private and public tokens for the sender if their balance is below the minimum.
359356 * @param token - Token contract.
360357 */
361- private async mintTokens ( token : TokenContract | EasyPrivateTokenContract , minter : AztecAddress ) {
358+ private async mintTokens ( token : TokenContract | PrivateTokenContract , minter : AztecAddress ) {
362359 const isStandardToken = isStandardTokenContract ( token ) ;
363360 let privateBalance = 0n ;
364361 let publicBalance = 0n ;
0 commit comments