From bf984466b5ef7bfdbe91cc6715daf8afcd733b41 Mon Sep 17 00:00:00 2001 From: LexLuthr Date: Fri, 5 Apr 2024 15:34:11 +0400 Subject: [PATCH] use fmt for hex --- storage/pipeline/utils.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/storage/pipeline/utils.go b/storage/pipeline/utils.go index c515ec5d0c3..ac519b6acef 100644 --- a/storage/pipeline/utils.go +++ b/storage/pipeline/utils.go @@ -3,7 +3,6 @@ package sealing import ( "bytes" "context" - "encoding/hex" "fmt" "math/bits" @@ -113,11 +112,10 @@ func simulateMsgGas(ctx context.Context, sa interface { if err != nil { return nil, xerrors.Errorf("failed to unmarshal the signed message: %w", err) } - s := hex.EncodeToString(b.Bytes()) gmsg, err := sa.GasEstimateMessageGas(ctx, &msg, nil, types.EmptyTSK) if err != nil { - err = fmt.Errorf("message %s failed: %w", s, err) + err = fmt.Errorf("message %x failed: %w", b.Bytes(), err) } return gmsg, err }