From ed9df4d1f1b93a0781e3f837de79e4bd2764fdd7 Mon Sep 17 00:00:00 2001 From: William Banfield <4561443+williambanfield@users.noreply.github.com> Date: Mon, 16 May 2022 12:13:57 -0400 Subject: [PATCH] Update types/block.go Co-authored-by: M. J. Fromberger --- types/block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/block.go b/types/block.go index 00a28d1f8..57ca3b540 100644 --- a/types/block.go +++ b/types/block.go @@ -764,7 +764,7 @@ func (ecs ExtendedCommitSig) ValidateBasic() error { } if len(ecs.ExtensionSignature) == 0 && len(ecs.Extension) != 0 { - return fmt.Errorf("vote extension signature absent on vote with extension") + return errors.New("vote extension signature absent on vote with extension") } return nil }