Skip to content

Commit dd500f5

Browse files
committed
refactor: set proving_system_id to i64 in task table struct
1 parent 37dce71 commit dd500f5

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

aggregation_mode/batcher/src/db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl Db {
4848
pub async fn insert_task(
4949
&self,
5050
address: &str,
51-
proving_system_id: i32,
51+
proving_system_id: i64,
5252
proof: &[u8],
5353
program_commitment: &[u8],
5454
merkle_path: Option<&[u8]>,

aggregation_mode/batcher/src/server/http.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ impl BatcherServer {
170170
.db
171171
.insert_task(
172172
&recovered_address,
173-
AggregationModeProvingSystem::SP1.as_u16() as i32,
173+
AggregationModeProvingSystem::SP1.as_u16() as i64,
174174
&proof_content,
175175
&vk_content,
176176
None,

aggregation_mode/db/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub enum TaskStatus {
1616
pub struct Task {
1717
pub task_id: Uuid,
1818
pub address: String,
19-
pub proving_system_id: i32,
19+
pub proving_system_id: i64,
2020
pub proof: Vec<u8>,
2121
pub program_commitment: Vec<u8>,
2222
pub merkle_path: Option<Vec<u8>>,

aggregation_mode/proof_aggregator/src/backend/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,6 @@ impl ProofAggregator {
414414
mod tests {
415415
use super::*;
416416

417-
use super::config::Config;
418-
419417
#[test]
420418
fn test_should_send_proof_to_verify_on_chain_updated_cases() {
421419
// The should_send_proof_to_verify_on_chain function returns true when:

0 commit comments

Comments
 (0)