From 984f9d8c4f9cc54bbc6d553e9e08bb8c5de2c52d Mon Sep 17 00:00:00 2001 From: nullun Date: Tue, 26 Nov 2024 13:56:48 +0000 Subject: [PATCH] fix err shadowing --- cmd/goal/clerk.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/goal/clerk.go b/cmd/goal/clerk.go index 6625e96c9b..3c734a2e98 100644 --- a/cmd/goal/clerk.go +++ b/cmd/goal/clerk.go @@ -477,8 +477,9 @@ var sendCmd = &cobra.Command{ Args: programArgs, }, } + var authAddr basics.Address if signerAddress != "" { - var authAddr, err = basics.UnmarshalChecksumAddress(signerAddress) + authAddr, err = basics.UnmarshalChecksumAddress(signerAddress) if err != nil { reportErrorf("Signer invalid (%s): %v", signerAddress, err) }