Skip to content

Commit

Permalink
feat: add api to simulate gasless bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
irrun committed Jul 17, 2024
1 parent 556493d commit 3bf91d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/types/bundle_gasless.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package types

import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
)

Expand All @@ -10,6 +11,7 @@ type SimulateGaslessBundleArgs struct {

type GaslessTx struct {
Index int
Hash common.Hash
GasUsed uint64
}

Expand Down
1 change: 1 addition & 0 deletions miner/worker_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ func (w *worker) simulateGaslessBundle(env *environment, bundle *types.Bundle) (

validTxs = append(validTxs, types.GaslessTx{
Index: i,
Hash: tx.Hash(),
GasUsed: receipt.GasUsed,
})

Expand Down

0 comments on commit 3bf91d4

Please sign in to comment.