mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
beacon: use %w instead of %v to format error
Signed-off-by: tmelhao <tmelhao@gmail.com>
This commit is contained in:
parent
20d3e0ac06
commit
aa0387107b
1 changed files with 1 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ func decodeTransactions(enc [][]byte) ([]*types.Transaction, error) {
|
|||
for i, encTx := range enc {
|
||||
var tx types.Transaction
|
||||
if err := tx.UnmarshalBinary(encTx); err != nil {
|
||||
return nil, fmt.Errorf("invalid transaction %d: %v", i, err)
|
||||
return nil, fmt.Errorf("invalid transaction %d: %w", i, err)
|
||||
}
|
||||
txs[i] = &tx
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue