Skip to content

Commit d250e0e

Browse files
committed
Remove limit of 10 and just call unwrap
1 parent 91007ec commit d250e0e

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

soroban-sdk-macros/src/derive_spec_fn.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -143,17 +143,7 @@ pub fn derive_fn_spec(
143143
));
144144
ScSymbol::default()
145145
}),
146-
inputs: spec_args.try_into().unwrap_or_else(|_| {
147-
const MAX: u32 = 10;
148-
errors.push(Error::new(
149-
inputs.iter().nth(MAX as usize).span(),
150-
format!(
151-
"contract function has too many parameters, max count {} parameters",
152-
MAX,
153-
),
154-
));
155-
VecM::<_, { u32::MAX }>::default()
156-
}),
146+
inputs: spec_args.try_into().unwrap(),
157147
outputs: spec_result.try_into().unwrap(),
158148
});
159149
let spec_xdr = spec_entry.to_xdr(DEFAULT_XDR_RW_LIMITS).unwrap();

0 commit comments

Comments
 (0)