Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
4c0b7659
Commit
4c0b7659
authored
2 years ago
by
lumir-mrkva
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
assert noop notifies that storage has been mutated (#11805)
parent
a0a806ac
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/frame/support/src/lib.rs
+4
-1
4 additions, 1 deletion
substrate/frame/support/src/lib.rs
with
4 additions
and
1 deletion
substrate/frame/support/src/lib.rs
+
4
−
1
View file @
4c0b7659
...
...
@@ -679,7 +679,7 @@ macro_rules! assert_noop {
)
=>
{
let
h
=
$crate
::
storage_root
(
$crate
::
StateVersion
::
V1
);
$crate
::
assert_err!
(
$x
,
$y
);
assert_eq!
(
h
,
$crate
::
storage_root
(
$crate
::
StateVersion
::
V1
));
assert_eq!
(
h
,
$crate
::
storage_root
(
$crate
::
StateVersion
::
V1
)
,
"storage has been mutated"
);
};
}
...
...
@@ -826,6 +826,7 @@ pub mod tests {
pub
struct
Module
<
T
:
Config
>
for
enum
Call
where
origin
:
T
::
Origin
,
system
=
self
{}
}
}
use
self
::
module
::
Module
;
decl_storage!
{
...
...
@@ -851,6 +852,7 @@ pub mod tests {
}
struct
Test
;
impl
Config
for
Test
{
type
BlockNumber
=
u32
;
type
Origin
=
u32
;
...
...
@@ -867,6 +869,7 @@ pub mod tests {
trait
Sorted
{
fn
sorted
(
self
)
->
Self
;
}
impl
<
T
:
Ord
>
Sorted
for
Vec
<
T
>
{
fn
sorted
(
mut
self
)
->
Self
{
self
.sort
();
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment