Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1914,7 +1914,7 @@ impl BlockItemSummaryDetails {
let Upward::Known(effects) = &at.effects else {
return Upward::Unknown(());
};
match effects {
let mut affected_accounts = match effects {
AccountTransactionEffects::None { .. } => vec![at.sender],
AccountTransactionEffects::ModuleDeployed { .. } => vec![at.sender],
AccountTransactionEffects::ContractInitialized { .. } => vec![at.sender],
Expand Down Expand Up @@ -1992,7 +1992,12 @@ impl BlockItemSummaryDetails {
add_token_event_addresses(&mut addresses, events);
addresses.into_iter().collect()
}
}
};
// Add the optional sponsor account to the affected accounts.
at.sponsor
.iter()
.for_each(|s| affected_accounts.push(s.sponsor));
affected_accounts
}
BlockItemSummaryDetails::AccountCreation(_) => Vec::new(),
BlockItemSummaryDetails::Update(_) => Vec::new(),
Expand Down