Skip to content

Commit

Permalink
Fix linter warnings in payload_building_test.go (#193)
Browse files Browse the repository at this point in the history
Was driving @lthibault crazy ;)
  • Loading branch information
lthibault authored Feb 13, 2024
1 parent 2eba5ba commit 5cb8e41
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions miner/payload_building_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,48 +84,48 @@ func TestBuildPayload(t *testing.T) {
func TestPayloadId(t *testing.T) {
ids := make(map[string]int)
for i, tt := range []*BuildPayloadArgs{
&BuildPayloadArgs{
{
Parent: common.Hash{1},
Timestamp: 1,
Random: common.Hash{0x1},
FeeRecipient: common.Address{0x1},
},
// Different parent
&BuildPayloadArgs{
{
Parent: common.Hash{2},
Timestamp: 1,
Random: common.Hash{0x1},
FeeRecipient: common.Address{0x1},
},
// Different timestamp
&BuildPayloadArgs{
{
Parent: common.Hash{2},
Timestamp: 2,
Random: common.Hash{0x1},
FeeRecipient: common.Address{0x1},
},
// Different Random
&BuildPayloadArgs{
{
Parent: common.Hash{2},
Timestamp: 2,
Random: common.Hash{0x2},
FeeRecipient: common.Address{0x1},
},
// Different fee-recipient
&BuildPayloadArgs{
{
Parent: common.Hash{2},
Timestamp: 2,
Random: common.Hash{0x2},
FeeRecipient: common.Address{0x2},
},
// Different withdrawals (non-empty)
&BuildPayloadArgs{
{
Parent: common.Hash{2},
Timestamp: 2,
Random: common.Hash{0x2},
FeeRecipient: common.Address{0x2},
Withdrawals: []*types.Withdrawal{
&types.Withdrawal{
{
Index: 0,
Validator: 0,
Address: common.Address{},
Expand All @@ -134,13 +134,13 @@ func TestPayloadId(t *testing.T) {
},
},
// Different withdrawals (non-empty)
&BuildPayloadArgs{
{
Parent: common.Hash{2},
Timestamp: 2,
Random: common.Hash{0x2},
FeeRecipient: common.Address{0x2},
Withdrawals: []*types.Withdrawal{
&types.Withdrawal{
{
Index: 2,
Validator: 0,
Address: common.Address{},
Expand Down

0 comments on commit 5cb8e41

Please sign in to comment.