Skip to content

Commit

Permalink
Give constant weight just to get it to compile (with warning)
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Aug 13, 2024
1 parent 09e877e commit 6fe7070
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pallets/attestation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ pub mod pallet {
pub trait Config: frame_system::Config + pallet_staking_extension::Config {
/// The overarching event type.
type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;

/// Describes the weights of the dispatchables exposed by this pallet.
type WeightInfo = ();
// type WeightInfo: WeightInfo;
}

#[pallet::genesis_config]
Expand Down Expand Up @@ -95,9 +91,7 @@ pub mod pallet {
#[pallet::call]
impl<T: Config> Pallet<T> {
#[pallet::call_index(0)]
// #[pallet::weight({<T as Config>::WeightInfo::attest()})]
//
#[pallet::weight(())]
#[pallet::weight(100)]
pub fn attest(origin: OriginFor<T>, quote: Vec<u8>) -> DispatchResult {
let who = ensure_signed(origin)?;
// Check that we were expecting a quote from this validator by getting the associated
Expand Down

0 comments on commit 6fe7070

Please sign in to comment.