mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-04-07 11:43:24 +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.
|
||||
// See the # Programs section for the definition of the `validate_execution` method.
|
||||
ensure!(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user