mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-29 15:09:49 +00:00
Fix overflow in crowdfunding module (#771)
* Fix overflow in crowdfunding module * Bump impl version
This commit is contained in:
1 parent
95afc7c2fd
commit
d209d0c719
2 files changed
+5
-2
No files matched your search
@@ -395,7 +395,10 @@ decl_module! {
|
||||
let fund = Self::funds(index).ok_or("invalid fund index")?;
|
||||
ensure!(fund.parachain.is_none(), "cannot dissolve fund with active parachain");
|
||||
let now = <system::Module<T>>::block_number();
|
||||
ensure!(now >= fund.end + T::RetirementPeriod::get(), "retirement period not over");
|
||||
ensure!(
|
||||
now >= fund.end.saturating_add(T::RetirementPeriod::get()),
|
||||
"retirement period not over"
|
||||
);
|
||||
|
||||
let account = Self::fund_account_id(index);
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
||||
impl_name: create_runtime_str!("parity-kusama"),
|
||||
authoring_version: 2,
|
||||
spec_version: 1040,
|
||||
impl_version: 1,
|
||||
impl_version: 2,
|
||||
apis: RUNTIME_API_VERSIONS,
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user