Remove unnecessary asserts (#24017)
This commit is contained in:
parent
9c8dad33c7
commit
ceb3b52ae4
|
@ -2553,16 +2553,6 @@ impl<'a, 'b> SyscallInvokeSigned<'a, 'b> for SyscallInvokeSignedC<'a, 'b> {
|
|||
) -> Result<Instruction, EbpfError<BpfError>> {
|
||||
let ix_c = translate_type::<SolInstruction>(memory_mapping, addr, self.check_aligned)?;
|
||||
|
||||
debug_assert_eq!(
|
||||
std::mem::size_of_val(&ix_c.accounts_len),
|
||||
std::mem::size_of::<usize>(),
|
||||
"non-64-bit host"
|
||||
);
|
||||
debug_assert_eq!(
|
||||
std::mem::size_of_val(&ix_c.data_len),
|
||||
std::mem::size_of::<usize>(),
|
||||
"non-64-bit host"
|
||||
);
|
||||
check_instruction_size(
|
||||
ix_c.accounts_len as usize,
|
||||
ix_c.data_len as usize,
|
||||
|
|
Loading…
Reference in New Issue