Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
wsodsong committed Apr 9, 2024
1 parent ab1848b commit 192d8d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/update_db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var testUpdateSet = &updateset.UpdateSet{
Block: 1,
}

var testDeletedAccounts = []types.Address{types.Address{3}, types.Address{4}}
var testDeletedAccounts = []types.Address{{3}, {4}}

func TestUpdateDB_PutUpdateSet(t *testing.T) {
dbPath := t.TempDir() + "test-db"
Expand Down
2 changes: 1 addition & 1 deletion substate/world_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (ws WorldState) EstimateIncrementalSize(y WorldState) uint64 {
continue
}
// update storage by y
for key, _ := range yAcc.Storage {
for key := range yAcc.Storage {
// only add new storage keys
if _, found := ws[yAddr].Storage[key]; !found {
size += sizeOfHash // add sizeof(types.Hash)
Expand Down

0 comments on commit 192d8d4

Please sign in to comment.