Allow creation of state tree v3s

This commit is contained in:
Aayush Rajasekaran 2021-04-30 22:41:02 -04:00
parent 0d253c3e64
commit 4193235b59

View File

@ -154,7 +154,7 @@ func NewStateTree(cst cbor.IpldStore, ver types.StateTreeVersion) (*StateTree, e
switch ver { switch ver {
case types.StateTreeVersion0: case types.StateTreeVersion0:
// info is undefined // info is undefined
case types.StateTreeVersion1, types.StateTreeVersion2: case types.StateTreeVersion1, types.StateTreeVersion2, types.StateTreeVersion3:
var err error var err error
info, err = cst.Put(context.TODO(), new(types.StateInfo0)) info, err = cst.Put(context.TODO(), new(types.StateInfo0))
if err != nil { if err != nil {