[#684] neofs-adm: transfer gas to the proxy contract

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-07-23 15:07:44 +03:00 committed by Alex Vanin
parent c78350846a
commit cf5f8a8f78
3 changed files with 43 additions and 1 deletions

View file

@ -138,7 +138,7 @@ func (c *initializeContext) deployContracts() error {
}
res, err := c.Client.InvokeFunction(mgmtHash, "deploy", params, []transaction.Signer{signer})
if err != nil {
return fmt.Errorf("can't deploy contract: %w", err)
return fmt.Errorf("can't deploy alphabet #%d contract: %w", i, err)
}
h, err := c.Client.SignAndPushInvocationTx(res.Script, acc, -1, 0, []client.SignerAccount{{
Signer: signer,