Skip to content

fix: driver maintenance#17

Merged
prestwich merged 8 commits intomainfrom
prestwich/driver-cleaner
Mar 18, 2025
Merged

fix: driver maintenance#17
prestwich merged 8 commits intomainfrom
prestwich/driver-cleaner

Conversation

@prestwich
Copy link
Copy Markdown
Member

some cleanup and a bugfix

@prestwich prestwich requested a review from a team as a code owner March 18, 2025 15:18
} = block_env;

*number = self.bundle.state_block_number.as_number().map(U256::from).unwrap_or(*number);
*coinbase = self.bundle.coinbase.unwrap_or(*coinbase);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bugfix is here, coinbase was previously not set

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great catch

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ya it's why i recommend destructuring in the implementation guide. easy to forget things

impl SignetCallBundleResponse {
/// Accumulate a transaction result into the response.
pub fn accumulate_tx_result(&mut self, tx_result: EthCallBundleTransactionResult) {
fn accumulate_tx_result(&mut self, tx_result: EthCallBundleTransactionResult) {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using this instead of accumulate_tx would be incorrect

impl<I> BundleDriver<OrderDetector<I>> for SignetBundleDriver<'_> {
type Error<Db: Database + DatabaseCommit> = SignetBundleError<Db>;

#[instrument(skip_all, level = Level::DEBUG)]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we maybe add a custom target here as well?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it gets the fn name as the target, which seems fine to me

@prestwich prestwich merged commit 74e8d0b into main Mar 18, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants