Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
just use 0
Browse files Browse the repository at this point in the history
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
  • Loading branch information
sam0x17 and shawntabrizi authored Oct 25, 2022
1 parent a7c85b3 commit bb71c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frame/support/procedural/src/pallet/parse/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ impl CallDef {
// inject a default O(1) weight when dev mode is enabled and no weight has
// been specified on the call
let empty_weight: syn::Expr =
syn::parse(quote::quote!(T::WeightInfo::create()).into())
syn::parse(quote::quote!(0).into())
.expect("we are parsing a quoted string; qed");
weight_attrs.push(FunctionAttr::Weight(empty_weight));
}
Expand Down

0 comments on commit bb71c7f

Please sign in to comment.