Skip to content

Commit

Permalink
Minor pchain UTs cleanup (#1554)
Browse files Browse the repository at this point in the history
  • Loading branch information
abi87 authored May 25, 2023
1 parent 4b52f82 commit eaf5256
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
5 changes: 0 additions & 5 deletions vms/platformvm/blocks/builder/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,6 @@ func defaultState(
if err := state.Commit(); err != nil {
panic(err)
}
state.SetHeight( /*height*/ 0)
if err := state.Commit(); err != nil {
panic(err)
}

return state
}

Expand Down
4 changes: 0 additions & 4 deletions vms/platformvm/blocks/executor/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,6 @@ func defaultState(
if err := state.Commit(); err != nil {
panic(err)
}
state.SetHeight( /*height*/ 0)
if err := state.Commit(); err != nil {
panic(err)
}
genesisBlkID = state.GetLastAccepted()
return state
}
Expand Down
4 changes: 0 additions & 4 deletions vms/platformvm/txs/executor/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,6 @@ func defaultState(
if err := state.Commit(); err != nil {
panic(err)
}
state.SetHeight( /*height*/ 0)
if err := state.Commit(); err != nil {
panic(err)
}
lastAcceptedID = state.GetLastAccepted()
return state
}
Expand Down

0 comments on commit eaf5256

Please sign in to comment.