Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 5c6068a

Browse files
Ruteriavalonche
authored andcommitted
Update gas limit in api check (#30)
1 parent 8140046 commit 5c6068a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eth/block-validation/api_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func TestValidateBuilderSubmissionV1(t *testing.T) {
101101
}
102102
blockRequest.Message.Value = boostTypes.IntToU256(190526394825529)
103103
require.ErrorContains(t, api.ValidateBuilderSubmissionV1(blockRequest), "inaccurate payment")
104-
blockRequest.Message.Value = boostTypes.IntToU256(190526394825530)
104+
blockRequest.Message.Value = boostTypes.IntToU256(190277920613530)
105105
require.NoError(t, api.ValidateBuilderSubmissionV1(blockRequest))
106106

107107
// TODO: test with contract calling blacklisted address
@@ -142,7 +142,7 @@ func TestValidateBuilderSubmissionV1(t *testing.T) {
142142
invalidPayload.LogsBloom = boostTypes.Bloom{}
143143
copy(invalidPayload.ReceiptsRoot[:], hexutil.MustDecode("0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421")[:32])
144144
blockRequest.ExecutionPayload = invalidPayload
145-
copy(blockRequest.Message.BlockHash[:], hexutil.MustDecode("0x48c4ee43556e149344878f5d1fee26b0b8d569e1697a4d9cce74034c6c45fac1")[:32])
145+
copy(blockRequest.Message.BlockHash[:], hexutil.MustDecode("0xbcefd7caec3624eb917a0a7055d6a6d5c2aeb71111adef5cc733577f7e6dd985")[:32])
146146
require.ErrorContains(t, api.ValidateBuilderSubmissionV1(blockRequest), "could not apply tx 3", "insufficient funds for gas * price + value")
147147
}
148148

0 commit comments

Comments
 (0)