fix: pool emitting

This commit is contained in:
0xMochan
2024-05-07 10:16:22 -05:00
parent 2d9ba502ca
commit 7c49d3e813
6 changed files with 77 additions and 66 deletions

View File

@@ -58,9 +58,11 @@ pub fn map_components(
})
.collect::<Vec<_>>();
components.extend(emit_specific_pools(&params, &block).expect(
if let Some(component) = emit_specific_pools(&params, &tx).expect(
"An unexpected error occured when parsing params for emitting specific pools",
));
) {
components.push(component)
}
if !components.is_empty() {
Some(TransactionProtocolComponents {