Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ddorgan
polkadot
Commits
6c426c24
Unverified
Commit
6c426c24
authored
Jan 15, 2020
by
Gavin Wood
Committed by
GitHub
Jan 15, 2020
Browse files
Fix overflow in crowdfunding module (#771)
* Fix overflow in crowdfunding module * Bump impl version
parent
e99340b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
runtime/common/src/crowdfund.rs
View file @
6c426c24
...
...
@@ -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
);
...
...
runtime/kusama/src/lib.rs
View file @
6c426c24
...
...
@@ -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
,
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment