mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-05-10 01:59:28 +00:00
fix: add self_program_id check for public execution
This commit is contained in:
parent
531381e023
commit
c9aa4d48c7
@ -184,6 +184,12 @@ impl PublicTransaction {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Verify that the program output's self_program_id matches the expected program ID.
|
||||||
|
ensure!(
|
||||||
|
program_output.self_program_id == chained_call.program_id,
|
||||||
|
NssaError::InvalidProgramBehavior
|
||||||
|
);
|
||||||
|
|
||||||
// Verify execution corresponds to a well-behaved program.
|
// Verify execution corresponds to a well-behaved program.
|
||||||
// See the # Programs section for the definition of the `validate_execution` method.
|
// See the # Programs section for the definition of the `validate_execution` method.
|
||||||
ensure!(
|
ensure!(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user