Fix state tree version assert

This commit is contained in:
zenground0 2023-04-12 08:22:34 -06:00
parent 24da8bdb34
commit 4443ac662f

View File

@ -1778,9 +1778,9 @@ func upgradeActorsV11Common(
return cid.Undef, xerrors.Errorf("failed to decode state root: %w", err)
}
if stateRoot.Version != types.StateTreeVersion5 {
if stateRoot.Version != types.StateTreeVersion4 {
return cid.Undef, xerrors.Errorf(
"expected state root version 4 for actors v10 upgrade, got %d",
"expected state root version 4 for actors v11 upgrade, got %d",
stateRoot.Version,
)
}