You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
info!("Batch verification task created on Aligned contract");
580
+
Ok(())
581
+
}
582
+
Err(e) => {
583
+
error!(
584
+
"Failed to send batch to contract, batch will be lost: {:?}",
585
+
e
586
+
);
587
+
588
+
Err(e)
589
+
}
590
+
}
591
+
}
592
+
593
+
asyncfncreate_new_task(
594
+
&self,
595
+
batch_merkle_root:[u8;32],
596
+
batch_data_pointer:String,
597
+
leaves:Vec<[u8;32]>,
598
+
signatures:Vec<SignatureData>,
599
+
gas_for_aggregator:U256,
600
+
gas_per_proof:U256,
601
+
) -> Result<TransactionReceipt,BatcherError>{
602
+
// pad leaves to next power of 2
603
+
let padded_leaves = Self::pad_leaves(leaves);
604
+
605
+
let call = self.payment_service.create_new_task(
606
+
batch_merkle_root,
572
607
batch_data_pointer,
573
-
leaves,
608
+
padded_leaves,
574
609
signatures,
575
-
AGGREGATOR_COST.into(),// FIXME(uri): This value should be read from aligned_layer/contracts/script/deploy/config/devnet/batcher-payment-service.devnet.config.json
576
-
gas_per_proof.into(),//FIXME(uri): This value should be read from aligned_layer/contracts/script/deploy/config/devnet/batcher-payment-service.devnet.config.json
577
-
)
578
-
.await?;
610
+
gas_for_aggregator,
611
+
gas_per_proof,
612
+
);
579
613
580
-
info!("Batch verification task created on Aligned contract");
0 commit comments