Skip to content

Commit

Permalink
Merge pull request #75 from wd30130/polkadot-v1.7.0
Browse files Browse the repository at this point in the history
merge from main branch
  • Loading branch information
Acaishiba authored Apr 3, 2024
2 parents 7a8fc82 + f96825c commit 6070fb2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "parachain-magnet-node"
version = "0.5.6"
version = "0.6.0"
authors = ["Magnet"]
description = "A scalable evm smart contract platform node, utilizing DOT as the gas fee."
license = "Apache License 2.0"
Expand Down
2 changes: 1 addition & 1 deletion runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "parachain-magnet-runtime"
version = "0.5.6"
version = "0.6.0"
authors = ["Magnet"]
description = "A scalable evm smart contract platform runtime, utilizing DOT as the gas fee."
license = "Apache License 2.0"
Expand Down
2 changes: 2 additions & 0 deletions runtime/src/xcms/xcm_weight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ impl<
}
let required = (AssetId(AssetIdValue::get()), u128_amount).into();
let unused = payment.checked_sub(required).map_err(|_| XcmError::TooExpensive)?;

let amount: Currency::Balance = u128_amount.saturated_into();
self.0 = self.0.saturating_add(weight);
self.1 = self.1.saturating_add(amount);
Ok(unused)
Expand Down

0 comments on commit 6070fb2

Please sign in to comment.