You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trips clippy due to too many arguments, and indeed, it's too many arguments, and its the kind of thing that also triggers large multi-file changesets whenever the signature gets updated. This is annoying.
My suggestion for this (and similarly BlockBuilder::try_mine_tx_with_len) is to make an argument struct:
I did a first round with run_contract_call. I think that if we want to pursue this logic we first need a macro allowing automatic generation of the with_ functions. In addition to this, by looking at the resulting code, it looks like the with_ calls are not inlined. We should probably enforce this (even if the two currently involved functions are not called so often in the run loop)
The function
Trips clippy due to too many arguments, and indeed, it's too many arguments, and its the kind of thing that also triggers large multi-file changesets whenever the signature gets updated. This is annoying.
My suggestion for this (and similarly
BlockBuilder::try_mine_tx_with_len
) is to make an argument struct:And then we can define constructors and chaining modifiers to simplify our lives:
The text was updated successfully, but these errors were encountered: