forked from TrueCloudLab/frostfs-node
[#421] morph/client: Add committee list getter
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
65c04284e7
commit
0cd7fa415f
2 changed files with 57 additions and 0 deletions
|
@ -100,11 +100,17 @@ func New(key *ecdsa.PrivateKey, endpoint string, opts ...Option) (*Client, error
|
|||
return nil, err
|
||||
}
|
||||
|
||||
neo, err := cli.GetNativeContractHash(nativenames.Neo)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &Client{
|
||||
logger: cfg.logger,
|
||||
client: cli,
|
||||
acc: account,
|
||||
gas: gas,
|
||||
neo: neo,
|
||||
waitInterval: cfg.waitInterval,
|
||||
}, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue