change withUpdates to match fork height logic

This commit is contained in:
whyrusleeping 2020-01-30 21:20:57 -08:00
parent c071b2dc47
commit d117cb61b6

View File

@ -26,7 +26,7 @@ func withUpdates(updates ...update) interface{} {
vmctx := args[1].Interface().(types.VMContext)
for _, u := range updates {
if vmctx.BlockHeight() >= u.start {
if vmctx.BlockHeight() > u.start {
return reflect.ValueOf(u.method).Call(args)
}
}