Commit 66a673d1 authored by Hieu Vu's avatar Hieu Vu
Browse files

try to using app Hash

parent 523d6e17
Showing with 4 additions and 0 deletions
+4 -0
......@@ -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)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment