Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions porteer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub mod weights;
pub use crate::weights::WeightInfo;
use frame_support::{transactional, Parameter};
pub use pallet::*;
use parity_scale_codec::MaxEncodedLen;
use parity_scale_codec::{DecodeWithMemTracking, HasCompact, MaxEncodedLen};
use sp_runtime::{
traits::{AtLeast32BitUnsigned, MaybeSerializeDeserialize, Member},
DispatchError,
Expand Down Expand Up @@ -389,7 +389,7 @@ pub mod pallet {
#[pallet::weight(< T as Config >::WeightInfo::port_tokens())]
pub fn port_tokens(
origin: OriginFor<T>,
amount: BalanceOf<T>,
#[pallet::compact] amount: BalanceOf<T>,
forward_tokens_to_location: Option<T::Location>,
) -> DispatchResult {
let signer = ensure_signed(origin)?;
Expand Down Expand Up @@ -448,9 +448,9 @@ pub mod pallet {
pub fn mint_ported_tokens(
origin: OriginFor<T>,
beneficiary: AccountIdOf<T>,
amount: BalanceOf<T>,
#[pallet::compact] amount: BalanceOf<T>,
forward_tokens_to_location: Option<T::Location>,
source_nonce: PortTokensNonceOf<T>,
#[pallet::compact] source_nonce: PortTokensNonceOf<T>,
) -> DispatchResult {
let _signer = T::TokenSenderLocationOrigin::ensure_origin(origin)?;

Expand Down Expand Up @@ -499,6 +499,7 @@ pub trait PortTokens {
+ Default
+ Copy
+ MaybeSerializeDeserialize
+ HasCompact<Type: DecodeWithMemTracking>
+ MaxEncodedLen;

type Location;
Expand Down
Loading