Have coordinator publish batches to Substrate

This commit is contained in:
Luke Parker
2023-05-10 01:45:42 -04:00
parent a70df6a449
commit f55e9b40e6
4 changed files with 36 additions and 12 deletions

View File

@@ -31,8 +31,7 @@ pub async fn provide_batch(batch: Batch) -> [u8; 32] {
let block = publish_tx(
&serai
.execute_batch(SignedBatch { batch: batch.clone(), signature: pair.sign(&batch.encode()) })
.unwrap(),
.execute_batch(SignedBatch { batch: batch.clone(), signature: pair.sign(&batch.encode()) }),
)
.await;