Skip to content

fix: empty input and deposits refunds#5

Merged
refcell merged 2 commits intorefcell:rf/deposit-tx-fixfrom
leruaa:operator-fee-fixes
Mar 19, 2025
Merged

fix: empty input and deposits refunds#5
refcell merged 2 commits intorefcell:rf/deposit-tx-fixfrom
leruaa:operator-fee-fixes

Conversation

@leruaa
Copy link

@leruaa leruaa commented Mar 19, 2025

In this PR:

  • Don't charge 0 operator fee if the tx input is empty
  • Don't reimburse caller for deposits (this revert a previous commit)

Comment on lines -80 to -84
// No validation is needed for deposit transactions, as they are pre-verified on L1.
if context.evm.inner.env.tx.optimism.source_hash.is_some() {
return Ok(());
}

Copy link
Owner

Choose a reason for hiding this comment

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

Was this move intentional?

Copy link
Owner

Choose a reason for hiding this comment

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

I guess it's a performance improvement not to do this

@refcell refcell merged commit 61ef518 into refcell:rf/deposit-tx-fix Mar 19, 2025
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.

3 participants