[#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:
parent
a99474c40e
commit
62b293b7ab
1 changed files with 3 additions and 1 deletions
|
@ -350,7 +350,9 @@ func depositGas(cmd *cobra.Command, acc *wallet.Account, network string) {
|
||||||
neofsHash, _ := util.Uint160DecodeStringLE(n3config[network].NeoFSContract)
|
neofsHash, _ := util.Uint160DecodeStringLE(n3config[network].NeoFSContract)
|
||||||
|
|
||||||
gasHash, err := mainClient.GetNativeContractHash(nativenames.Gas)
|
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)
|
mainActor, err := actor.NewSimple(mainClient, acc)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue