fix multisig creation to not use the synthetic CIDs after v8
This commit is contained in:
parent
090c655422
commit
688e8f3c09
@ -54,9 +54,17 @@ func (m message{{.v}}) Create(
|
|||||||
return nil, actErr
|
return nil, actErr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{{if (le .v 7)}}
|
||||||
|
actorCodeID := builtin{{.v}}.MultisigActorCodeID
|
||||||
|
{{else}}
|
||||||
|
actorCodeID, ok := actors.GetActorCodeID(actors.Version{{.v}}, "multisig")
|
||||||
|
if !ok {
|
||||||
|
return nil, xerrors.Errorf("error getting actor multisig code id for actor version %d", {{.v}})
|
||||||
|
}
|
||||||
|
{{end}}
|
||||||
// new actors are created by invoking 'exec' on the init actor with the constructor params
|
// new actors are created by invoking 'exec' on the init actor with the constructor params
|
||||||
execParams := &init{{.v}}.ExecParams{
|
execParams := &init{{.v}}.ExecParams{
|
||||||
CodeCID: builtin{{.v}}.MultisigActorCodeID,
|
CodeCID: actorCodeID,
|
||||||
ConstructorParams: enc,
|
ConstructorParams: enc,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user