Skip to content

Commit

Permalink
feat: support custom gas limit
Browse files Browse the repository at this point in the history
  • Loading branch information
renlulu committed Jun 24, 2024
1 parent 1c246c8 commit c922e53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/createRollup/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func main() {
common.HexToAddress("0x0B03bF93Ef8A8626E5d73DB4d9181E8c10568D7B"),
[]common.Address{common.HexToAddress("0x7B5bCf696b6C9Ef9189fed66597A4aAC87957a08")},
big.NewInt(125000000000000000),
10266112,
)

if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions pkg/rollup/rollup_creator.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func (r *RollupCreator) CreateRollup(
batchPoster common.Address,
validators []common.Address,
value *big.Int,
gasLimit uint64,
) (*ethtypes.Transaction, error) {
var config bindings.Config
config.ConfirmPeriodBlocks = types.DefaultConfig.ConfirmPeriodBlocks
Expand Down Expand Up @@ -122,6 +123,7 @@ func (r *RollupCreator) CreateRollup(
}
r.opts.Nonce = big.NewInt(int64(nonce))
r.opts.Value = value
r.opts.GasLimit = gasLimit

return rollupCreatorTransactor.CreateRollup(r.opts, deploymentParams)
}
Expand Down

0 comments on commit c922e53

Please sign in to comment.