Skip to content

Commit

Permalink
use fmt for hex
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr committed Apr 5, 2024
1 parent 3e3344b commit bf98446
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions storage/pipeline/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package sealing
import (
"bytes"
"context"
"encoding/hex"
"fmt"
"math/bits"

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit bf98446

Please sign in to comment.