This commit is contained in:
vyzo 2022-04-21 15:09:58 +03:00
parent 688e8f3c09
commit 2d93697fe3
8 changed files with 27 additions and 8 deletions

View File

@ -53,9 +53,11 @@ func (m message0) Create(
return nil, actErr
}
actorCodeID := builtin0.MultisigActorCodeID
// new actors are created by invoking 'exec' on the init actor with the constructor params
execParams := &init0.ExecParams{
CodeCID: builtin0.MultisigActorCodeID,
CodeCID: actorCodeID,
ConstructorParams: enc,
}

View File

@ -50,9 +50,11 @@ func (m message2) Create(
return nil, actErr
}
actorCodeID := builtin2.MultisigActorCodeID
// new actors are created by invoking 'exec' on the init actor with the constructor params
execParams := &init2.ExecParams{
CodeCID: builtin2.MultisigActorCodeID,
CodeCID: actorCodeID,
ConstructorParams: enc,
}

View File

@ -50,9 +50,11 @@ func (m message3) Create(
return nil, actErr
}
actorCodeID := builtin3.MultisigActorCodeID
// new actors are created by invoking 'exec' on the init actor with the constructor params
execParams := &init3.ExecParams{
CodeCID: builtin3.MultisigActorCodeID,
CodeCID: actorCodeID,
ConstructorParams: enc,
}

View File

@ -50,9 +50,11 @@ func (m message4) Create(
return nil, actErr
}
actorCodeID := builtin4.MultisigActorCodeID
// new actors are created by invoking 'exec' on the init actor with the constructor params
execParams := &init4.ExecParams{
CodeCID: builtin4.MultisigActorCodeID,
CodeCID: actorCodeID,
ConstructorParams: enc,
}

View File

@ -50,9 +50,11 @@ func (m message5) Create(
return nil, actErr
}
actorCodeID := builtin5.MultisigActorCodeID
// new actors are created by invoking 'exec' on the init actor with the constructor params
execParams := &init5.ExecParams{
CodeCID: builtin5.MultisigActorCodeID,
CodeCID: actorCodeID,
ConstructorParams: enc,
}

View File

@ -50,9 +50,11 @@ func (m message6) Create(
return nil, actErr
}
actorCodeID := builtin6.MultisigActorCodeID
// new actors are created by invoking 'exec' on the init actor with the constructor params
execParams := &init6.ExecParams{
CodeCID: builtin6.MultisigActorCodeID,
CodeCID: actorCodeID,
ConstructorParams: enc,
}

View File

@ -50,9 +50,11 @@ func (m message7) Create(
return nil, actErr
}
actorCodeID := builtin7.MultisigActorCodeID
// new actors are created by invoking 'exec' on the init actor with the constructor params
execParams := &init7.ExecParams{
CodeCID: builtin7.MultisigActorCodeID,
CodeCID: actorCodeID,
ConstructorParams: enc,
}

View File

@ -50,9 +50,14 @@ func (m message8) Create(
return nil, actErr
}
actorCodeID, ok := actors.GetActorCodeID(actors.Version8, "multisig")
if !ok {
return nil, xerrors.Errorf("error getting actor multisig code id for actor version %d", 8)
}
// new actors are created by invoking 'exec' on the init actor with the constructor params
execParams := &init8.ExecParams{
CodeCID: builtin8.MultisigActorCodeID,
CodeCID: actorCodeID,
ConstructorParams: enc,
}