From 90f1b0fd17b208310ac29da98937fb1cd7bf73ad Mon Sep 17 00:00:00 2001
From: Tatiana Nesterenko <tatiana@nspcc.io>
Date: Tue, 15 Aug 2023 13:00:54 +0100
Subject: [PATCH] core: change text in ErrInvalidVerificationContract

No functional changes, just a refactoring.
Change error text to be able to use this error from external packages.

Signed-off-by: Tatiana Nesterenko <tatiana@nspcc.io>
---
 pkg/core/blockchain.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go
index 2eb6a7698..e2327de60 100644
--- a/pkg/core/blockchain.go
+++ b/pkg/core/blockchain.go
@@ -2773,7 +2773,7 @@ var (
 	ErrInvalidSignature            = fmt.Errorf("%w: invalid signature", ErrVerificationFailed)
 	ErrInvalidVerificationScript   = errors.New("invalid verification script")
 	ErrUnknownVerificationContract = errors.New("unknown verification contract")
-	ErrInvalidVerificationContract = errors.New("verification contract is missing `verify` method")
+	ErrInvalidVerificationContract = errors.New("verification contract is missing `verify` method or `verify` method has unexpected return value")
 )
 
 // InitVerificationContext initializes context for witness check.