[#648] morph/client: Fix method name in NewEpoch

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-06-25 16:21:03 +03:00 committed by Alex Vanin
parent 1f461baf0b
commit 5df55bcfaf

View file

@ -18,7 +18,7 @@ func (a *NewEpochArgs) SetEpochNumber(v int64) {
// NewEpoch invokes the call of new epoch method
// of NeoFS Netmap contract.
func (c *Client) NewEpoch(args NewEpochArgs) error {
if err := c.client.Invoke(c.addPeerMethod, args.number); err != nil {
if err := c.client.Invoke(c.newEpochMethod, args.number); err != nil {
return fmt.Errorf("could not invoke method (%s): %w", c.newEpochMethod, err)
}
return nil