Skip to content

Commit 16dbe11

Browse files
authored
fix: remove the hack for max destination len (#64)
1 parent b66b342 commit 16dbe11

File tree

1 file changed

+1
-3
lines changed
  • crates/txs/bridge-v1/src/deposit_request

1 file changed

+1
-3
lines changed

crates/txs/bridge-v1/src/deposit_request/aux.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,7 @@ impl<'a> Arbitrary<'a> for DrtHeaderAux {
129129
let mut recovery_pk = [0u8; 32];
130130
u.fill_buffer(&mut recovery_pk)?;
131131

132-
// FIXME: -1 can be removed after we have a new release of strata-common that includes https://github.com/alpenlabs/strata-common/pull/79
133-
let destination_len = u.int_in_range(0..=MAX_DESTINATION_LEN - 1)?;
134-
132+
let destination_len = u.int_in_range(0..=MAX_DESTINATION_LEN)?;
135133
let mut destination_bytes = vec![0u8; destination_len];
136134
u.fill_buffer(&mut destination_bytes)?;
137135

0 commit comments

Comments
 (0)