Skip to content

Commit

Permalink
fix(common,service): make receipt_max_value u128
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Asseman <alexis@semiotic.ai>
  • Loading branch information
aasseman committed Jul 1, 2024
1 parent c166626 commit 5f1c4be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/src/indexer_service/http/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ pub struct TapConfig {
pub chain_id: u64,
pub receipts_verifier_address: Address,
pub timestamp_error_tolerance: u64,
pub receipt_max_value: u64,
pub receipt_max_value: u128,
}
2 changes: 1 addition & 1 deletion common/src/indexer_service/http/indexer_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ impl IndexerService {
escrow_accounts,
domain_separator.clone(),
timestamp_error_tolerance,
receipt_max_value.into(),
receipt_max_value,
)
.await;

Expand Down
2 changes: 1 addition & 1 deletion service/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl From<MainConfig> for Config {
chain_id: value.blockchain.chain_id as u64,
receipts_verifier_address: value.blockchain.receipts_verifier_address,
timestamp_error_tolerance: value.tap.rav_request.timestamp_buffer_secs.as_secs(),
receipt_max_value: value.service.tap.max_receipt_value_grt.get_value() as u64,
receipt_max_value: value.service.tap.max_receipt_value_grt.get_value(),
},
})
}
Expand Down

0 comments on commit 5f1c4be

Please sign in to comment.