[#421] morph/client: Add committee list getter

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-03-09 17:45:35 +03:00 committed by Alex Vanin
parent 65c04284e7
commit 0cd7fa415f
2 changed files with 57 additions and 0 deletions

View file

@ -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
}