Skip to content

Commit a08bbdb

Browse files
committed
Fix comment and add TODO back
1 parent 25bb6fc commit a08bbdb

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

common/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use std::fmt::{Display, Formatter};
1919
use std::ops::{AddAssign, Neg};
2020
use std::{cmp::Ordering, fmt};
2121

22-
/// Address network identifier
22+
/// Network identifier
2323
#[derive(
2424
Debug,
2525
Clone,

modules/accounts_state/src/state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -991,8 +991,8 @@ impl State {
991991
mod tests {
992992
use super::*;
993993
use acropolis_common::{
994-
protocol_params::ConwayParams, rational_number::RationalNumber, NetworkId, Anchor,
995-
Committee, Constitution, CostModel, DRepVotingThresholds, PoolVotingThresholds, Pot,
994+
protocol_params::ConwayParams, rational_number::RationalNumber, Anchor, Committee,
995+
Constitution, CostModel, DRepVotingThresholds, NetworkId, PoolVotingThresholds, Pot,
996996
PotDelta, Ratio, Registration, StakeAddress, StakeAddressDelta, StakeAddressPayload,
997997
StakeAndVoteDelegation, StakeRegistrationAndStakeAndVoteDelegation,
998998
StakeRegistrationAndVoteDelegation, VoteDelegation, Withdrawal,

modules/drep_state/src/state.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ impl State {
490490
let response = context.message_bus.request(&accounts_query_topic, msg).await?;
491491
let message = Arc::try_unwrap(response).unwrap_or_else(|arc| (*arc).clone());
492492

493+
// TODO: Ensure AccountsStateQueryResponse is for the correct block
493494
let result_map = match message {
494495
Message::StateQueryResponse(StateQueryResponse::Accounts(
495496
AccountsStateQueryResponse::AccountsDrepDelegationsMap(map),

modules/stake_delta_filter/src/utils.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,9 @@ mod test {
401401
use crate::*;
402402
use acropolis_common::{
403403
messages::AddressDeltasMessage, Address, AddressDelta, BlockHash, BlockInfo, BlockStatus,
404-
ByronAddress, Era, ShelleyAddress, ShelleyAddressDelegationPart, ShelleyAddressPaymentPart,
405-
ShelleyAddressPointer, StakeAddress, StakeAddressPayload, UTxOIdentifier, ValueDelta, NetworkId
404+
ByronAddress, Era, NetworkId, ShelleyAddress, ShelleyAddressDelegationPart,
405+
ShelleyAddressPaymentPart, ShelleyAddressPointer, StakeAddress, StakeAddressPayload,
406+
UTxOIdentifier, ValueDelta,
406407
};
407408
use bech32::{Bech32, Hrp};
408409

0 commit comments

Comments
 (0)