Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Polkadot 0.9.26 #146

Merged
merged 20 commits into from
Jul 21, 2022
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
add transactional primitive on some transfer related methods
  • Loading branch information
tolak committed Jul 20, 2022
commit ed0183e20962b9522f8042b87603842c16e04e7d
5 changes: 5 additions & 0 deletions pallets/subbridge/src/chainbridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pub mod pallet {
pub use frame_support::{
pallet_prelude::*,
traits::{tokens::fungibles::Inspect, Currency, StorageVersion},
transactional,
weights::GetDispatchInfo,
PalletId, Parameter,
};
Expand Down Expand Up @@ -401,6 +402,7 @@ pub mod pallet {
let dispatch_info = call.get_dispatch_info();
(dispatch_info.weight + 195_000_000, dispatch_info.class, Pays::Yes)
})]
#[transactional]
pub fn acknowledge_proposal(
origin: OriginFor<T>,
nonce: DepositNonce,
Expand All @@ -424,6 +426,7 @@ pub mod pallet {
/// - Fixed, since execution of proposal should not be included
/// # </weight>
#[pallet::weight(195_000_000)]
#[transactional]
pub fn reject_proposal(
origin: OriginFor<T>,
nonce: DepositNonce,
Expand Down Expand Up @@ -453,6 +456,7 @@ pub mod pallet {
let dispatch_info = prop.get_dispatch_info();
(dispatch_info.weight + 195_000_000, dispatch_info.class, Pays::Yes)
})]
#[transactional]
pub fn eval_vote_state(
origin: OriginFor<T>,
nonce: DepositNonce,
Expand All @@ -466,6 +470,7 @@ pub mod pallet {

/// Triggered by a initial transfer on source chain, executed by relayer when proposal was resolved.
#[pallet::weight(195_000_000)]
#[transactional]
pub fn handle_fungible_transfer(
origin: OriginFor<T>,
dest: Vec<u8>,
Expand Down