Open nxsaken opened 3 months ago
related to #4703
Additionally, change instances of impl IntoIterator<Item = impl Instruction>
function parameters to impl IntoIterator<Item = I>, I: Instruction
, which is more flexible due to the turbofish syntax being available. This would allow wrapping multiple instructions into *Box
es without binding them to a separate variable.
Currently, only
InstructionBox
implementsInstruction
out of all ISI wrappers. I expectedRegisterBox
,MintBox
and the rest of the wrappers to be usable withiroha.submit_*()
directly, but they are not. I think it would be more ergonomic if they were.