Skip to content

Commit

Permalink
Rename impl method, add @khorolets as codeowner of indexer-primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
khorolets committed Feb 8, 2022
1 parent f277032 commit 130ce16
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
/chain/jsonrpc/ @khorolets @rtsai123
/chain/jsonrpc-primitives/ @khorolets @miraclx @rtsai123
/chain/indexer/ @khorolets
/chain/indexer-primitives/ @khorolets
/chain/rosetta-rpc/ @frol @mina86
/utils @pmnoxx @mm-near

Expand Down
2 changes: 1 addition & 1 deletion chain/client/src/view_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ impl Handler<GetStateChangesWithCauseInBlockForTrackedShards> for ViewClientActo
let mut state_changes_with_cause_split_by_shard_id: HashMap<ShardId, StateChangesView> =
HashMap::new();
for state_change_with_cause in state_changes_with_cause_in_block {
let account_id = state_change_with_cause.value.account_id();
let account_id = state_change_with_cause.value.affected_account_id();
let shard_id = match self
.runtime_adapter
.account_id_to_shard_id(account_id, &msg.epoch_id)
Expand Down
2 changes: 1 addition & 1 deletion core/primitives/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ pub enum StateChangeValue {
}

impl StateChangeValue {
pub fn account_id(&self) -> &AccountId {
pub fn affected_account_id(&self) -> &AccountId {
match &self {
StateChangeValue::AccountUpdate { account_id, .. }
| StateChangeValue::AccountDeletion { account_id }
Expand Down

0 comments on commit 130ce16

Please sign in to comment.