Remove unnecessary asserts (#24017)

This commit is contained in:
Jack May 2022-03-31 09:23:45 -07:00 committed by GitHub
parent 9c8dad33c7
commit ceb3b52ae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 10 deletions

View File

@ -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,