[#1522] adm/helper: Remove NewActor() helper

It is used once, it is used only internally and it is single-statement.
I see no justification in having it as a separate function.
It introduces confusion, because we also have NewLocalActor().

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2024-11-22 10:55:51 +03:00 committed by Evgenii Stratonikov
parent a6ef4ab524
commit 2469e0c683
2 changed files with 7 additions and 13 deletions

View file

@ -83,7 +83,13 @@ func NewRemoteClient(v *viper.Viper) (Client, error) {
}
func DefaultClientContext(c Client, committeeAcc *wallet.Account) (*ClientContext, error) {
commAct, err := NewActor(c, committeeAcc)
commAct, err := actor.New(c, []actor.SignerAccount{{
Signer: transaction.Signer{
Account: committeeAcc.Contract.ScriptHash(),
Scopes: transaction.Global,
},
Account: committeeAcc,
}})
if err != nil {
return nil, err
}