forked from TrueCloudLab/frostfs-node
[#732] neofs-adm: get contract path on initialization
Simplifies code a bit. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
67b17cfb02
commit
6a40adcfca
5 changed files with 19 additions and 43 deletions
|
@ -155,12 +155,7 @@ func (c *initializeContext) transferGASToProxy() error {
|
|||
return fmt.Errorf("can't fetch %s hash: %w", nativenames.Gas, err)
|
||||
}
|
||||
|
||||
ctrPath, err := c.Command.Flags().GetString(contractsInitFlag)
|
||||
if err != nil {
|
||||
return fmt.Errorf("missing contracts path: %w", err)
|
||||
}
|
||||
|
||||
cs, err := c.readContract(ctrPath, proxyContract)
|
||||
cs, err := c.readContract(proxyContract)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue