Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
osmosis
Commits
66a673d1
Commit
66a673d1
authored
2 years ago
by
Hieu Vu
Browse files
Options
Download
Email Patches
Plain Diff
try to using app Hash
parent
523d6e17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/apptesting/test_suite.go
+4
-0
app/apptesting/test_suite.go
with
4 additions
and
0 deletions
+4
-0
app/apptesting/test_suite.go
+
4
-
0
View file @
66a673d1
...
...
@@ -353,7 +353,11 @@ func (s *KeeperTestHelper) BuildTx(
// StateNotAltered validates that app state is not altered. Fails if it is.
func
(
s
*
KeeperTestHelper
)
StateNotAltered
()
{
oldState
:=
s
.
App
.
ExportState
(
s
.
Ctx
)
oldHash
:=
s
.
App
.
LastCommitID
()
.
Hash
s
.
Commit
()
newHash
:=
s
.
App
.
LastCommitID
()
.
Hash
fmt
.
Println
(
"oldHash"
,
oldHash
)
fmt
.
Println
(
"newHash"
,
newHash
)
newState
:=
s
.
App
.
ExportState
(
s
.
Ctx
)
s
.
Require
()
.
Equal
(
oldState
,
newState
)
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets