소스 검색

feat: remove alignment from Ed25519SignatureOffsets struct (#2294)

Keyvan Khademi 10 달 전
부모
커밋
70b3f3551a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lazer/contracts/solana/programs/pyth-lazer-solana-contract/src/signature.rs

+ 1 - 1
lazer/contracts/solana/programs/pyth-lazer-solana-contract/src/signature.rs

@@ -26,7 +26,7 @@ const MESSAGE_SIZE_LEN: u16 = 2;
 /// these fields that indicate the location of the signature data within data of other
 /// instructions within the same transaction.
 #[derive(Debug, Clone, Copy, Zeroable, Pod)]
-#[repr(C)]
+#[repr(C, packed)]
 pub struct Ed25519SignatureOffsets {
     /// Offset to the ed25519 signature within the instruction data.
     pub signature_offset: u16,