|
2 | 2 |
|
3 | 3 | use alloc::vec::Vec; |
4 | 4 |
|
5 | | -use codec::{Decode, Encode}; |
| 5 | +use codec::{Decode, DecodeWithMemTracking, Encode}; |
6 | 6 | use frame_support::{ |
7 | 7 | dispatch::{DispatchResult, DispatchResultWithPostInfo}, |
8 | 8 | pallet_prelude::MaxEncodedLen, |
@@ -531,14 +531,16 @@ impl<T: Config> Pallet<T> { |
531 | 531 | } |
532 | 532 | } |
533 | 533 |
|
534 | | -#[derive(Clone, Decode, Debug, Encode, MaxEncodedLen, PartialEq, TypeInfo)] |
| 534 | +#[derive( |
| 535 | + Clone, Decode, DecodeWithMemTracking, Debug, Encode, MaxEncodedLen, PartialEq, TypeInfo, |
| 536 | +)] |
535 | 537 | pub enum Status { |
536 | 538 | Pending, |
537 | 539 | TimedOut, |
538 | 540 | Complete, |
539 | 541 | } |
540 | 542 |
|
541 | | -#[derive(Encode, Decode, Debug, MaxEncodedLen)] |
| 543 | +#[derive(Encode, Decode, DecodeWithMemTracking, Debug, MaxEncodedLen)] |
542 | 544 | #[cfg_attr(feature = "std", derive(PartialEq, Clone))] |
543 | 545 | #[repr(u8)] |
544 | 546 | #[allow(clippy::unnecessary_cast)] |
@@ -608,7 +610,9 @@ trait CalculateDeposit<Deposit> { |
608 | 610 | fn calculate_deposit(&self) -> Deposit; |
609 | 611 | } |
610 | 612 |
|
611 | | -#[derive(Clone, Debug, Encode, Eq, Decode, MaxEncodedLen, PartialEq, TypeInfo)] |
| 613 | +#[derive( |
| 614 | + Clone, Debug, Encode, Eq, Decode, DecodeWithMemTracking, MaxEncodedLen, PartialEq, TypeInfo, |
| 615 | +)] |
612 | 616 | #[scale_info(skip_type_params(T))] |
613 | 617 | enum Message<T: Config> { |
614 | 618 | Ismp { |
@@ -638,7 +642,18 @@ enum Message<T: Config> { |
638 | 642 | } |
639 | 643 |
|
640 | 644 | // Message selector and pre-paid weight used as gas limit |
641 | | -#[derive(Copy, Clone, Debug, Encode, Eq, Decode, MaxEncodedLen, PartialEq, TypeInfo)] |
| 645 | +#[derive( |
| 646 | + Copy, |
| 647 | + Clone, |
| 648 | + Debug, |
| 649 | + Encode, |
| 650 | + Eq, |
| 651 | + Decode, |
| 652 | + DecodeWithMemTracking, |
| 653 | + MaxEncodedLen, |
| 654 | + PartialEq, |
| 655 | + TypeInfo, |
| 656 | +)] |
642 | 657 | pub struct Callback { |
643 | 658 | pub selector: [u8; 4], |
644 | 659 | pub weight: Weight, |
|
0 commit comments