Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
7ae98a52
Commit
7ae98a52
authored
Sep 06, 2023
by
Felipe Andrade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove gas configs
parent
0cc439c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
config.go
op-ufm/pkg/config/config.go
+4
-10
No files found.
op-ufm/pkg/config/config.go
View file @
7ae98a52
...
@@ -48,10 +48,7 @@ type WalletConfig struct {
...
@@ -48,10 +48,7 @@ type WalletConfig struct {
PrivateKey
string
`toml:"private_key"`
PrivateKey
string
`toml:"private_key"`
// transaction parameters
// transaction parameters
TxValue
big
.
Int
`toml:"tx_value"`
TxValue
big
.
Int
`toml:"tx_value"`
GasLimit
uint64
`toml:"gas_limit"`
GasTipCap
big
.
Int
`toml:"gas_tip_cap"`
GasFeeCap
big
.
Int
`toml:"gas_fee_cap"`
}
}
type
ProviderConfig
struct
{
type
ProviderConfig
struct
{
...
@@ -131,12 +128,6 @@ func (c *Config) Validate() error {
...
@@ -131,12 +128,6 @@ func (c *Config) Validate() error {
if
wallet
.
TxValue
.
BitLen
()
==
0
{
if
wallet
.
TxValue
.
BitLen
()
==
0
{
return
errors
.
Errorf
(
"wallet [%s] tx_value is missing"
,
name
)
return
errors
.
Errorf
(
"wallet [%s] tx_value is missing"
,
name
)
}
}
if
wallet
.
GasLimit
==
0
{
return
errors
.
Errorf
(
"wallet [%s] gas_limit is missing"
,
name
)
}
if
wallet
.
GasFeeCap
.
BitLen
()
==
0
{
return
errors
.
Errorf
(
"wallet [%s] gas_fee_cap is missing"
,
name
)
}
}
}
for
name
,
provider
:=
range
c
.
Providers
{
for
name
,
provider
:=
range
c
.
Providers
{
...
@@ -155,6 +146,9 @@ func (c *Config) Validate() error {
...
@@ -155,6 +146,9 @@ func (c *Config) Validate() error {
if
provider
.
SendTransactionRetryTimeout
==
0
{
if
provider
.
SendTransactionRetryTimeout
==
0
{
return
errors
.
Errorf
(
"provider [%s] send_transaction_retry_timeout is missing"
,
name
)
return
errors
.
Errorf
(
"provider [%s] send_transaction_retry_timeout is missing"
,
name
)
}
}
if
provider
.
SendTransactionCoolDown
==
0
{
return
errors
.
Errorf
(
"provider [%s] send_transaction_cool_down is missing"
,
name
)
}
if
provider
.
ReceiptRetrievalInterval
==
0
{
if
provider
.
ReceiptRetrievalInterval
==
0
{
return
errors
.
Errorf
(
"provider [%s] receipt_retrieval_interval is missing"
,
name
)
return
errors
.
Errorf
(
"provider [%s] receipt_retrieval_interval is missing"
,
name
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment