From bc41004b03fd08a3c1ad1d0833ba503668c94c23 Mon Sep 17 00:00:00 2001 From: "Owain G. Ainsworth" Date: Tue, 18 Jun 2013 17:37:07 +0100 Subject: [PATCH] Use errors.New() not fmt.Errorf() when no fmt string. --- script.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.go b/script.go index 63629afe..b1bef325 100644 --- a/script.go +++ b/script.go @@ -71,11 +71,11 @@ var StackErrElementTooBig = errors.New("Element in script too large") // StackErrUnknownAddress is returned when ScriptToAddress does not recognise // the pattern of the script and thus can not find the address for payment. -var StackErrUnknownAddress = fmt.Errorf("non-recognised address") +var StackErrUnknownAddress = errors.New("non-recognised address") // StackErrScriptFailed is returned when at the end of a script the boolean // on top of the stack is false signifying that the script has failed. -var StackErrScriptFailed = fmt.Errorf("execute fail, fail on stack") +var StackErrScriptFailed = errors.New("execute fail, fail on stack") // Bip16Activation is the timestamp where BIP0016 is valid to use in the // blockchain. To be used to determine if BIP0016 should be called for or not.