Skip to content

Commit

Permalink
fix height bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoVillar committed Oct 1, 2024
1 parent 00dd379 commit 4123fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ func (vm *VM) Initialize(
if err := sps.Insert(ctx, chain.HeightKey(layout.HeightPrefix()), binary.BigEndian.AppendUint64(nil, 0)); err != nil {
return err
}
if err := sps.Insert(ctx, chain.TimestampKey(layout.HeightPrefix()), binary.BigEndian.AppendUint64(nil, 0)); err != nil {
if err := sps.Insert(ctx, chain.TimestampKey(layout.TimestampPrefix()), binary.BigEndian.AppendUint64(nil, 0)); err != nil {
return err
}
genesisRules := vm.Rules(0)
Expand Down

0 comments on commit 4123fae

Please sign in to comment.