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