Skip to content

Commit

Permalink
fix after review
Browse files Browse the repository at this point in the history
  • Loading branch information
BeniaminDrasovean committed Oct 25, 2022
1 parent 9bc791f commit 7e51156
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion epochStart/metachain/baseRewards_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ func TestBaseRewardsCreator_isSystemDelegationSC(t *testing.T) {
require.False(t, isDelegationSCAddress)

// existing user account
userAccount, err := state.NewUserAccount([]byte("userAddress"), &hashingMocks.HasherMock{}, &marshal.GogoProtoMarshalizer{})
userAccount, err := state.NewUserAccount([]byte("userAddress"), &hashingMocks.HasherMock{}, &testscommon.MarshalizerMock{})
require.Nil(t, err)

userAccount.SetDataTrie(&trieMock.TrieStub{
Expand Down
20 changes: 10 additions & 10 deletions state/trackableDataTrie.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import (

// TrackableDataTrie wraps a PatriciaMerkelTrie adding modifying data capabilities
type trackableDataTrie struct {
dirtyData map[string][]byte
tr common.Trie
hasher hashing.Hasher
marshalizer marshal.Marshalizer
identifier []byte
dirtyData map[string][]byte
tr common.Trie
hasher hashing.Hasher
marshaller marshal.Marshalizer
identifier []byte
}

// NewTrackableDataTrie returns an instance of trackableDataTrie
Expand All @@ -28,11 +28,11 @@ func NewTrackableDataTrie(identifier []byte, tr common.Trie, hasher hashing.Hash
}

return &trackableDataTrie{
tr: tr,
hasher: hasher,
marshalizer: marshaller,
dirtyData: make(map[string][]byte),
identifier: identifier,
tr: tr,
hasher: hasher,
marshaller: marshaller,
dirtyData: make(map[string][]byte),
identifier: identifier,
}, nil
}

Expand Down

0 comments on commit 7e51156

Please sign in to comment.