From 64afa5db3ee72918901749219d4df3ee83035854 Mon Sep 17 00:00:00 2001 From: Dustin Xie Date: Wed, 6 Mar 2024 16:33:33 -0800 Subject: [PATCH] typo --- action/protocol/staking/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action/protocol/staking/handlers.go b/action/protocol/staking/handlers.go index 776b88db3f..928a4469c3 100644 --- a/action/protocol/staking/handlers.go +++ b/action/protocol/staking/handlers.go @@ -839,7 +839,7 @@ func (p *Protocol) fetchBucketAndValidate( } if !allowSelfStaking { selfStaking, serr := isSelfStakeBucket(featureCtx, csm, bucket) - if err != nil { + if serr != nil { return bucket, &handleError{ err: serr, failureStatus: iotextypes.ReceiptStatus_ErrUnknown,