Skip to content

Commit

Permalink
clean macro
Browse files Browse the repository at this point in the history
  • Loading branch information
miraclx committed Nov 15, 2024
1 parent 26958e5 commit 11af296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/sdk/macros/src/logic/method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ impl ToTokens for PublicLogicMethod<'_> {
None => (
if init_method {
quote_spanned! {name.span()=>
if let Some(mut app) = ::calimero_storage::collections::Root::<#self_>::fetch() {
if ::calimero_storage::collections::Root::<#self_>::fetch().is_some() {
::calimero_sdk::env::panic_str("Cannot initialize over already existing state.")
};

let mut app =
let app =
}
} else {
quote! {}
Expand Down

0 comments on commit 11af296

Please sign in to comment.