Skip to content

Commit e06ef71

Browse files
committed
add transceiver instruction size invariant
1 parent 5ab6111 commit e06ef71

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/INVARIANTS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,3 +260,10 @@
260260
- **Error Codes**: `PayloadTooLong` (EVM)
261261
- **Code Reference**: `TransceiverStructs.sol` (EVM), implementation of `Writable` trait for `NativeTokenTransfer` (Solana)
262262

263+
### INV-029: Transceiver Instruction Length Limitation
264+
265+
- **Invariant**: Individual transceiver instruction payloads must not exceed uint8 in size
266+
- **Description**: Prevents unbounded message sizes that could cause processing issues
267+
- **Enforcement**: Assertions in encoding logic
268+
- **Error Codes**: `PayloadTooLong` (EVM)
269+
- **Code Reference**: `encodeTransceiverInstruction()` (EVM)

0 commit comments

Comments
 (0)