mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-03 05:43:08 +00:00
use filter
This commit is contained in:
parent
cf9c567e29
commit
b5589d53bb
@ -153,11 +153,11 @@ impl PublicTransaction {
|
||||
return Err(NssaError::InvalidProgramBehavior);
|
||||
}
|
||||
|
||||
for post in program_output.post_states.iter_mut() {
|
||||
if !post.requires_claim() {
|
||||
continue;
|
||||
}
|
||||
|
||||
for post in program_output
|
||||
.post_states
|
||||
.iter_mut()
|
||||
.filter(|post| post.requires_claim())
|
||||
{
|
||||
// The invoked program can only claim accounts with default program id.
|
||||
if post.account().program_owner == DEFAULT_PROGRAM_ID {
|
||||
post.account_mut().program_owner = chained_call.program_id;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user