Skip to content

Commit

Permalink
fixed few linters
Browse files Browse the repository at this point in the history
  • Loading branch information
aniketpr01 committed Jun 18, 2024
1 parent d9b7923 commit bea49e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions starknet-accounts/src/account/declaration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const QUERY_VERSION_THREE: Felt = Felt::from_raw([
]);

impl<'a, A> DeclarationV2<'a, A> {
pub fn new(
pub const fn new(
contract_class: Arc<FlattenedSierraClass>,
compiled_class_hash: Felt,
account: &'a A,
Expand Down Expand Up @@ -256,7 +256,7 @@ where
}

impl<'a, A> DeclarationV3<'a, A> {
pub fn new(
pub const fn new(
contract_class: Arc<FlattenedSierraClass>,
compiled_class_hash: Felt,
account: &'a A,
Expand Down Expand Up @@ -533,7 +533,7 @@ where
}

impl<'a, A> LegacyDeclaration<'a, A> {
pub fn new(contract_class: Arc<LegacyContractClass>, account: &'a A) -> Self {
pub const fn new(contract_class: Arc<LegacyContractClass>, account: &'a A) -> Self {
Self {
account,
contract_class,
Expand Down
4 changes: 2 additions & 2 deletions starknet-accounts/src/account/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const QUERY_VERSION_THREE: Felt = Felt::from_raw([
]);

impl<'a, A> ExecutionV1<'a, A> {
pub fn new(calls: Vec<Call>, account: &'a A) -> Self {
pub const fn new(calls: Vec<Call>, account: &'a A) -> Self {
Self {
account,
calls,
Expand Down Expand Up @@ -90,7 +90,7 @@ impl<'a, A> ExecutionV1<'a, A> {
}

impl<'a, A> ExecutionV3<'a, A> {
pub fn new(calls: Vec<Call>, account: &'a A) -> Self {
pub const fn new(calls: Vec<Call>, account: &'a A) -> Self {
Self {
account,
calls,
Expand Down

0 comments on commit bea49e2

Please sign in to comment.