Skip to content

Commit

Permalink
fix naming capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
Manav-Aggarwal committed Aug 6, 2022
1 parent b6acaf1 commit 74194e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ func generateFraudProof(store *multi.Store, storeKeyToSubstoreTraceBuf map[types
traceKv := kvStore.(*tracekv.Store)
keys := traceKv.GetAllKeysUsedInTrace(*subStoreTraceBuf)

substoreSMT := store.GetSubStoreSMT(storeKey.Name())
substoreSMT := store.GetSubstoreSMT(storeKey.Name())
stateWitness := StateWitness{
WitnessData: make([]WitnessData, 0, keys.Len()),
}
Expand Down
4 changes: 2 additions & 2 deletions baseapp/baseapp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2328,8 +2328,8 @@ func TestGenerateAndLoadFraudProof(t *testing.T) {
// Compare SMT store roots inside all the substores of the second app with the first app's SMT store roots
cmsB1 := appB1.cms.(*multi.Store)
cmsB2 := appB2.cms.(*multi.Store)
smtB1 := cmsB1.GetSubStoreSMT(capKey2.Name())
smtB2 := cmsB2.GetSubStoreSMT(capKey2.Name())
smtB1 := cmsB1.GetSubstoreSMT(capKey2.Name())
smtB2 := cmsB2.GetSubstoreSMT(capKey2.Name())

require.Equal(t, string(smtB1.Root()), string(smtB2.Root()))
}
2 changes: 1 addition & 1 deletion store/v2alpha1/multi/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ func (s *Store) SetPruning(po pruningtypes.PruningOptions) {
s.pruningManager.SetOptions(po)
}

func (s *Store) GetSubStoreSMT(key string) *smt.Store {
func (s *Store) GetSubstoreSMT(key string) *smt.Store {
sub, err := s.getSubstore(key)
if err != nil {
panic(err)
Expand Down

0 comments on commit 74194e4

Please sign in to comment.