Skip to content

Commit

Permalink
fixed format
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadai2010 committed Aug 10, 2024
1 parent 6684b95 commit 8af7620
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/snfoundry/contracts/src/YourContract.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ pub trait IYourContract<TContractState> {
mod YourContract {
use openzeppelin::access::ownable::OwnableComponent;
use openzeppelin::token::erc20::interface::{IERC20CamelDispatcher, IERC20CamelDispatcherTrait};
use starknet::{ContractAddress, contract_address_const};
use starknet::{get_caller_address, get_contract_address};
use super::{IYourContract};
use starknet::{ContractAddress, contract_address_const};

component!(path: OwnableComponent, storage: ownable, event: OwnableEvent);

Expand Down Expand Up @@ -100,4 +100,4 @@ mod YourContract {
self.premium.read()
}
}
}
}
2 changes: 1 addition & 1 deletion packages/snfoundry/contracts/src/lib.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ mod YourContract;
#[cfg(test)]
mod test {
mod TestContract;
}
}
2 changes: 1 addition & 1 deletion packages/snfoundry/contracts/src/test/TestContract.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ fn test_deployment_values() {
dispatcher.set_gretting(new_greeting.clone(), 0); // we transfer 0 eth

assert_eq!(dispatcher.gretting(), new_greeting, "Should allow setting a new message");
}
}

0 comments on commit 8af7620

Please sign in to comment.