From b05fcd02b94c9fb143b360cd3064762d7ec0ead1 Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Mon, 3 Nov 2025 15:26:14 +0800 Subject: [PATCH] common: improve function ExtractAddressFromBytes, close XFN-15 (#1658) --- common/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/types.go b/common/types.go index aebda8e32e..ecfd3cf31b 100644 --- a/common/types.go +++ b/common/types.go @@ -401,7 +401,7 @@ func ExtractAddressToBytes(penalties []Address) []byte { } func ExtractAddressFromBytes(bytePenalties []byte) []Address { - if bytePenalties != nil && len(bytePenalties) < AddressLength { + if len(bytePenalties) < AddressLength { return []Address{} } penalties := make([]Address, len(bytePenalties)/AddressLength)