Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 090e112

Browse files
authored
Add const_assert_eq to PACKET_DATA_SIZE (#26227)
1 parent a741edd commit 090e112

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ js-sys = "0.3.57"
8686
[dev-dependencies]
8787
anyhow = "1.0.57"
8888
curve25519-dalek = "3.2.1"
89+
static_assertions = "1.1.0"
8990
tiny-bip39 = "0.8.2"
9091

9192
[build-dependencies]

sdk/src/packet.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ use {
99
},
1010
};
1111

12+
#[cfg(test)]
13+
static_assertions::const_assert_eq!(PACKET_DATA_SIZE, 1232);
1214
/// Maximum over-the-wire size of a Transaction
1315
/// 1280 is IPv6 minimum MTU
1416
/// 40 bytes is the size of the IPv6 header

0 commit comments

Comments
 (0)