Skip to content

Commit

Permalink
Implementing support for p7, compiles now...
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmus-kirk committed Sep 3, 2024
1 parent 713d638 commit fd4ced2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions src/api/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,16 @@ fn operations_and_metadata_from_account_transaction_details(
.iter()
.enumerate()
.map(|(i, event)| match event {
BakerEvent::DelegationRemoved {
delegator_id
} => normal_account_transaction_operation(
i as i64,
details,
None,
Some(&DelegationRemovedMetadata {
delegator_id: *delegator_id
})
),
BakerEvent::BakerAdded {
data,
} => normal_account_transaction_operation(
Expand Down Expand Up @@ -757,6 +767,16 @@ fn operations_and_metadata_from_account_transaction_details(
.iter()
.enumerate()
.map(|(i, event)| match event {
DelegationEvent::BakerRemoved {
baker_id
} => normal_account_transaction_operation(
i as i64,
details,
None,
Some(&BakerRemovedMetadata {
baker_id: *baker_id,
})
),
DelegationEvent::DelegationAdded {
delegator_id,
} => normal_account_transaction_operation(
Expand Down

0 comments on commit fd4ced2

Please sign in to comment.