From bb6dccd5dbe80be9a8c6ea4904d26f52f2f00e2b Mon Sep 17 00:00:00 2001 From: Darlington02 Date: Sat, 27 Apr 2024 02:16:35 +0100 Subject: [PATCH] chore: fmt contracts --- contracts/scripts/src/hellostarknet.cairo | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/contracts/scripts/src/hellostarknet.cairo b/contracts/scripts/src/hellostarknet.cairo index 23de935..6200e60 100644 --- a/contracts/scripts/src/hellostarknet.cairo +++ b/contracts/scripts/src/hellostarknet.cairo @@ -1,12 +1,14 @@ use sncast_std::{ - declare, deploy, DeclareResult, DeployResult, get_nonce, DisplayContractAddress, DisplayClassHash + declare, deploy, DeclareResult, DeployResult, get_nonce, DisplayContractAddress, + DisplayClassHash }; fn main() { let max_fee = 99999999999999999; let salt = 0x3; - let declare_result = declare("HelloStarknet", Option::Some(max_fee), Option::None).expect('contract already declared'); + let declare_result = declare("HelloStarknet", Option::Some(max_fee), Option::None) + .expect('contract already declared'); let nonce = get_nonce('latest'); let class_hash = declare_result.class_hash; @@ -14,8 +16,14 @@ fn main() { println!("Class hash of the declared contract: {}", declare_result.class_hash); let deploy_result = deploy( - class_hash, ArrayTrait::new(), Option::Some(salt), true, Option::Some(max_fee), Option::Some(nonce) - ).expect('deploy failed'); + class_hash, + ArrayTrait::new(), + Option::Some(salt), + true, + Option::Some(max_fee), + Option::Some(nonce) + ) + .expect('deploy failed'); println!("Deployed the contract to address: {}", deploy_result.contract_address); }