Skip to content

Commit

Permalink
Fix for toml test.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanIliev545 committed Sep 19, 2023
1 parent 401c0cd commit 7b1d6f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go/enclave/container/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ type EnclaveConfigToml struct {
MaxRollupSize uint64
GasPaymentAddress string
BaseFee uint64
GasLimit uint64
}

// ParseConfig returns a config.EnclaveConfig based on either the file identified by the `config` flag, or the flags
Expand Down Expand Up @@ -73,6 +74,7 @@ func ParseConfig() (*config.EnclaveConfig, error) {
maxRollupSize := flag.Uint64(maxRollupSizeName, cfg.MaxRollupSize, flagUsageMap[maxRollupSizeName])
baseFee := flag.Uint64("l2BaseFee", cfg.BaseFee.Uint64(), "")
coinbaseAddress := flag.String("l2Coinbase", cfg.GasPaymentAddress.Hex(), "")
gasLimit := flag.Uint64("l2GasLimit", cfg.GasLimit.Uint64(), "")

flag.Parse()

Expand Down Expand Up @@ -109,6 +111,7 @@ func ParseConfig() (*config.EnclaveConfig, error) {
cfg.MaxRollupSize = *maxRollupSize
cfg.BaseFee = big.NewInt(0).SetUint64(*baseFee)
cfg.GasPaymentAddress = gethcommon.HexToAddress(*coinbaseAddress)
cfg.GasLimit = big.NewInt(0).SetUint64(*gasLimit)

return cfg, nil
}
Expand Down

0 comments on commit 7b1d6f2

Please sign in to comment.