Skip to content

Commit

Permalink
PR review.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanIliev545 committed Nov 5, 2024
1 parent da7dcd7 commit 23313c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go/enclave/evm/transaction_overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ func MaskedSender(address gethcommon.Address) gethcommon.Address {
return gethcommon.BigToAddress(big.NewInt(0).Sub(address.Big(), big.NewInt(1)))
}

// TransactionToMessageWithOverrides is used to convert a transaction to a message to be applied to the evm.
// Overrides can change how stuff in the message is derived, e.g. the sender. This is useful for synthetic transactions,
// where we do not want to do signature validation or have a private key.
func TransactionToMessageWithOverrides(
tx *common.L2PricedTransaction,
config *params.ChainConfig,
Expand Down

0 comments on commit 23313c5

Please sign in to comment.