@@ -55,7 +55,7 @@ pub async fn check_and_aggregate_receipts(
5555
5656 // Check that the rav has the correct allocation id
5757 if let Some ( previous_rav) = & previous_rav {
58- let prev_id = previous_rav. message . allocation_id ;
58+ let prev_id = previous_rav. message . allocationId ;
5959 if prev_id != allocation_id {
6060 return Err ( tap_core:: Error :: RavAllocationIdMismatch {
6161 prev_id : format ! ( "{prev_id:#X}" ) ,
@@ -117,9 +117,9 @@ fn check_receipt_timestamps(
117117 if let Some ( previous_rav) = & previous_rav {
118118 for receipt in receipts. iter ( ) {
119119 let receipt = & receipt. message ;
120- if previous_rav. message . timestamp_ns >= receipt. timestamp_ns {
120+ if previous_rav. message . timestampNs >= receipt. timestamp_ns {
121121 return Err ( tap_core:: Error :: ReceiptTimestampLowerThanRav {
122- rav_ts : previous_rav. message . timestamp_ns ,
122+ rav_ts : previous_rav. message . timestampNs ,
123123 receipt_ts : receipt. timestamp_ns ,
124124 }
125125 . into ( ) ) ;
@@ -256,9 +256,9 @@ mod tests {
256256 let rav = EIP712SignedMessage :: new (
257257 & domain_separator,
258258 tap_core:: receipt_aggregate_voucher:: ReceiptAggregateVoucher {
259- allocation_id : allocation_ids[ 0 ] ,
260- timestamp_ns : receipt_timestamp_range. clone ( ) . min ( ) . unwrap ( ) - 1 ,
261- value_aggregate : 42 ,
259+ allocationId : allocation_ids[ 0 ] ,
260+ timestampNs : receipt_timestamp_range. clone ( ) . min ( ) . unwrap ( ) - 1 ,
261+ valueAggregate : 42 ,
262262 } ,
263263 & keys. 0 ,
264264 )
@@ -271,9 +271,9 @@ mod tests {
271271 let rav = EIP712SignedMessage :: new (
272272 & domain_separator,
273273 tap_core:: receipt_aggregate_voucher:: ReceiptAggregateVoucher {
274- allocation_id : allocation_ids[ 0 ] ,
275- timestamp_ns : receipt_timestamp_range. clone ( ) . min ( ) . unwrap ( ) ,
276- value_aggregate : 42 ,
274+ allocationId : allocation_ids[ 0 ] ,
275+ timestampNs : receipt_timestamp_range. clone ( ) . min ( ) . unwrap ( ) ,
276+ valueAggregate : 42 ,
277277 } ,
278278 & keys. 0 ,
279279 )
@@ -286,9 +286,9 @@ mod tests {
286286 let rav = EIP712SignedMessage :: new (
287287 & domain_separator,
288288 tap_core:: receipt_aggregate_voucher:: ReceiptAggregateVoucher {
289- allocation_id : allocation_ids[ 0 ] ,
290- timestamp_ns : receipt_timestamp_range. clone ( ) . max ( ) . unwrap ( ) + 1 ,
291- value_aggregate : 42 ,
289+ allocationId : allocation_ids[ 0 ] ,
290+ timestampNs : receipt_timestamp_range. clone ( ) . max ( ) . unwrap ( ) + 1 ,
291+ valueAggregate : 42 ,
292292 } ,
293293 & keys. 0 ,
294294 )
0 commit comments