[#1711] adm: Add error context

To make all the calls in the command to be in the same form.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-08-30 13:25:00 +03:00 committed by fyrchik
parent a99474c40e
commit 62b293b7ab

View file

@ -350,7 +350,9 @@ func depositGas(cmd *cobra.Command, acc *wallet.Account, network string) {
neofsHash, _ := util.Uint160DecodeStringLE(n3config[network].NeoFSContract)
gasHash, err := mainClient.GetNativeContractHash(nativenames.Gas)
fatalOnErr(err)
if err != nil {
fatalOnErr(fmt.Errorf("gas contract hash: %w", err))
}
mainActor, err := actor.NewSimple(mainClient, acc)
if err != nil {