Skip to content

Commit 3911873

Browse files
committed
error message fixes
1 parent becf31c commit 3911873

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

receipts/receipts.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ func decodeNonceChange(log *types.Log) (*big.Int, *big.Int, error) {
480480
return nil, nil, fmt.Errorf("unable to decode NonceChange: %w", err)
481481
}
482482
if len(args) != 2 {
483-
return nil, nil, fmt.Errorf("%v NonceChange arguments, expected two: %w", len(args), err)
483+
return nil, nil, fmt.Errorf("%v NonceChange arguments, expected two", len(args))
484484
}
485485

486486
space, ok := args[0].(*big.Int)
@@ -512,7 +512,7 @@ func decodeCallSucceeded(log *types.Log) (common.Hash, *big.Int, error) {
512512
return common.Hash{}, nil, fmt.Errorf("unable to decode CallSucceeded: %w", err)
513513
}
514514
if len(args) != 2 {
515-
return common.Hash{}, nil, fmt.Errorf("%v CallSucceeded arguments, expected two: %w", len(args), err)
515+
return common.Hash{}, nil, fmt.Errorf("%v CallSucceeded arguments, expected two", len(args))
516516
}
517517

518518
digest, ok := args[0].([common.HashLength]byte)
@@ -544,7 +544,7 @@ func decodeCallFailed(log *types.Log) (common.Hash, *big.Int, error, error) {
544544
return common.Hash{}, nil, nil, fmt.Errorf("unable to decode CallFailed: %w", err)
545545
}
546546
if len(args) != 3 {
547-
return common.Hash{}, nil, nil, fmt.Errorf("%v CallFailed arguments, expected three: %w", len(args), err)
547+
return common.Hash{}, nil, nil, fmt.Errorf("%v CallFailed arguments, expected three", len(args))
548548
}
549549

550550
digest, ok := args[0].([common.HashLength]byte)
@@ -588,7 +588,7 @@ func decodeCallAborted(log *types.Log) (common.Hash, *big.Int, error, error) {
588588
return common.Hash{}, nil, nil, fmt.Errorf("unable to decode CallAborted: %w", err)
589589
}
590590
if len(args) != 3 {
591-
return common.Hash{}, nil, nil, fmt.Errorf("%v CallAborted arguments, expected three: %w", len(args), err)
591+
return common.Hash{}, nil, nil, fmt.Errorf("%v CallAborted arguments, expected three", len(args))
592592
}
593593

594594
digest, ok := args[0].([common.HashLength]byte)
@@ -632,7 +632,7 @@ func decodeCallSkipped(log *types.Log) (common.Hash, *big.Int, error) {
632632
return common.Hash{}, nil, fmt.Errorf("unable to decode CallSkipped: %w", err)
633633
}
634634
if len(args) != 2 {
635-
return common.Hash{}, nil, fmt.Errorf("%v CallSkipped arguments, expected two: %w", len(args), err)
635+
return common.Hash{}, nil, fmt.Errorf("%v CallSkipped arguments, expected two", len(args))
636636
}
637637

638638
digest, ok := args[0].([common.HashLength]byte)
@@ -666,7 +666,7 @@ func decodeTxExecutedV2(log *types.Log) (common.Hash, *big.Int, error) {
666666
return common.Hash{}, nil, fmt.Errorf("unable to decode v2 TxExecuted: %w", err)
667667
}
668668
if len(args) != 1 {
669-
return common.Hash{}, nil, fmt.Errorf("%v v2 TxExecuted arguments, expected one: %w", len(args), err)
669+
return common.Hash{}, nil, fmt.Errorf("%v v2 TxExecuted arguments, expected one", len(args))
670670
}
671671

672672
index, ok := args[0].(*big.Int)
@@ -695,7 +695,7 @@ func decodeTxFailedV2(log *types.Log) (common.Hash, *big.Int, error, error) {
695695
return common.Hash{}, nil, nil, fmt.Errorf("unable to decode v2 TxFailed: %w", err)
696696
}
697697
if len(args) != 2 {
698-
return common.Hash{}, nil, nil, fmt.Errorf("%v v2 TxFailed arguments, expected two: %w", len(args), err)
698+
return common.Hash{}, nil, nil, fmt.Errorf("%v v2 TxFailed arguments, expected two", len(args))
699699
}
700700

701701
index, ok := args[0].(*big.Int)
@@ -746,7 +746,7 @@ func decodeTxFailedV1(log *types.Log) (common.Hash, error, error) {
746746
return common.Hash{}, nil, fmt.Errorf("unable to decode v1 TxFailed: %w", err)
747747
}
748748
if len(args) != 2 {
749-
return common.Hash{}, nil, fmt.Errorf("%v v1 TxFailed arguments, expected two: %w", len(args), err)
749+
return common.Hash{}, nil, fmt.Errorf("%v v1 TxFailed arguments, expected two", len(args))
750750
}
751751

752752
subdigest, ok := args[0].([common.HashLength]byte)

0 commit comments

Comments
 (0)