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

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
remotes/fyrchik/meta-pebble
Alex Vanin 2021-06-25 16:21:03 +03:00 committed by Alex Vanin
parent 1f461baf0b
commit 5df55bcfaf
1 changed files with 1 additions and 1 deletions

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