@@ -20,7 +20,7 @@ use tari_ootle_common_types::{Network, engine_types::transaction_receipt::Transa
2020use tari_ootle_transaction:: { TransactionBuilder , args} ;
2121use tari_template_lib_types:: {
2222 ComponentAddress , NonFungibleAddress , NonFungibleId , ResourceAddress , TemplateAddress ,
23- constants:: { TARI , TARI_TOKEN } ,
23+ constants:: { TARI_TOKEN } ,
2424} ;
2525use tari_utilities:: { ByteArray , hex:: Hex } ;
2626
@@ -357,7 +357,7 @@ async fn cmd_init(state_path: &Path, state: &mut State) -> anyhow::Result<()> {
357357 println ! ( " 🏦 Account component: {account_addr}" ) ;
358358
359359 let unsigned_tx = IFaucet :: new ( & provider)
360- . take_faucet_funds ( 10 * TARI )
360+ . take_faucet_funds ( )
361361 . pay_fee ( 500u64 )
362362 . prepare ( )
363363 . await ?;
@@ -663,7 +663,7 @@ async fn create_user(
663663 state : & mut State ,
664664 name_arg : Option < String > ,
665665) -> anyhow:: Result < ( ) > {
666- let name = name_arg. unwrap_or_else ( || generate_name ( ) ) ;
666+ let name = name_arg. unwrap_or_else ( generate_name) ;
667667 let network = parse_network ( & state. network ) ?;
668668 let secret = OotleSecretKey :: random ( network) ;
669669 let wallet = OotleWallet :: from ( PrivateKeyProvider :: new ( secret. clone ( ) ) ) ;
@@ -679,7 +679,7 @@ async fn create_user(
679679 println ! ( "👤 Creating user '{name}' with account address {account_address}..." ) ;
680680
681681 let unsigned_tx = IFaucet :: new ( & provider)
682- . take_faucet_funds ( 10 * TARI )
682+ . take_faucet_funds ( )
683683 . pay_fee ( 500u64 )
684684 . prepare ( )
685685 . await ?;
@@ -787,7 +787,7 @@ async fn cmd_end_game(state: &mut State) -> anyhow::Result<()> {
787787 }
788788 println ! (
789789 "🏆 The number was {}." ,
790- number. unwrap_or_else ( || "unknown?" )
790+ number. unwrap_or ( "unknown?" )
791791 ) ;
792792 println ! ( "🏆 Round ended." ) ;
793793
0 commit comments