@@ -113,7 +113,9 @@ test('args: type', async () => {
113113 readonly BlobSidecar < `0x${string } `> [ ] | undefined
114114 > ( )
115115 expectTypeOf ( result_eip4844 . gasPrice ) . toEqualTypeOf < never > ( )
116- expectTypeOf ( result_eip4844 . maxFeePerBlobGas ) . toEqualTypeOf < bigint > ( )
116+ expectTypeOf ( result_eip4844 . maxFeePerBlobGas ) . toEqualTypeOf <
117+ bigint | undefined
118+ > ( )
117119 expectTypeOf ( result_eip4844 . maxFeePerGas ) . toEqualTypeOf < bigint > ( )
118120 expectTypeOf ( result_eip4844 . maxPriorityFeePerGas ) . toEqualTypeOf < bigint > ( )
119121
@@ -136,7 +138,9 @@ test('args: type', async () => {
136138 readonly BlobSidecar < `0x${string } `> [ ]
137139 > ( )
138140 expectTypeOf ( result_eip4844_2 . gasPrice ) . toEqualTypeOf < never > ( )
139- expectTypeOf ( result_eip4844_2 . maxFeePerBlobGas ) . toEqualTypeOf < bigint > ( )
141+ expectTypeOf ( result_eip4844_2 . maxFeePerBlobGas ) . toEqualTypeOf <
142+ bigint | undefined
143+ > ( )
140144 expectTypeOf ( result_eip4844_2 . maxFeePerGas ) . toEqualTypeOf < bigint > ( )
141145 expectTypeOf ( result_eip4844_2 . maxPriorityFeePerGas ) . toEqualTypeOf < bigint > ( )
142146} )
@@ -173,7 +177,7 @@ test('args: eip4844 attributes', async () => {
173177 expectTypeOf ( result_1 . gasPrice ) . toEqualTypeOf < never > ( )
174178 expectTypeOf ( result_1 . maxFeePerGas ) . toEqualTypeOf < bigint > ( )
175179 expectTypeOf ( result_1 . maxPriorityFeePerGas ) . toEqualTypeOf < bigint > ( )
176- expectTypeOf ( result_1 . maxFeePerBlobGas ) . toEqualTypeOf < bigint > ( )
180+ expectTypeOf ( result_1 . maxFeePerBlobGas ) . toEqualTypeOf < bigint | undefined > ( )
177181
178182 const result_2 = await prepareTransactionRequest ( client , {
179183 blobs : [ '0x' ] ,
@@ -183,13 +187,13 @@ test('args: eip4844 attributes', async () => {
183187 } )
184188 expectTypeOf ( result_2 . type ) . toEqualTypeOf < 'eip4844' > ( )
185189 expectTypeOf ( result_2 . blobs ) . toEqualTypeOf <
186- readonly Hex [ ] | readonly ByteArray [ ]
190+ readonly Hex [ ] | readonly ByteArray [ ] | undefined
187191 > ( )
188192 expectTypeOf ( result_2 . blobVersionedHashes ) . toEqualTypeOf < readonly Hex [ ] > ( )
189193 expectTypeOf ( result_2 . gasPrice ) . toEqualTypeOf < never > ( )
190194 expectTypeOf ( result_2 . maxFeePerGas ) . toEqualTypeOf < bigint > ( )
191195 expectTypeOf ( result_2 . maxPriorityFeePerGas ) . toEqualTypeOf < bigint > ( )
192- expectTypeOf ( result_2 . maxFeePerBlobGas ) . toEqualTypeOf < bigint > ( )
196+ expectTypeOf ( result_2 . maxFeePerBlobGas ) . toEqualTypeOf < bigint | undefined > ( )
193197} )
194198
195199test ( 'args: parameters' , async ( ) => {
0 commit comments