Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
asoliman92 committed Dec 18, 2024
1 parent 0f28d04 commit 05807c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pluginconfig/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@ type ExecuteOffchainConfig struct {
TransmissionDelayMultiplier time.Duration `json:"transmissionDelayMultiplier"`
}

func (e ExecuteOffchainConfig) ApplyDefaultsAndValidate() error {
func (e *ExecuteOffchainConfig) ApplyDefaultsAndValidate() error {
e.applyDefaults()
return e.Validate()
}

func (e ExecuteOffchainConfig) applyDefaults() {
func (e *ExecuteOffchainConfig) applyDefaults() {
if e.TransmissionDelayMultiplier == 0 {
e.TransmissionDelayMultiplier = defaultTransmissionDelayMultiplier
}
}

func (e ExecuteOffchainConfig) Validate() error {
func (e *ExecuteOffchainConfig) Validate() error {
// TODO: this doesn't really make much sense for non-EVM chains.
// Maybe we need to have a field in the config that is not JSON-encoded
// that indicates chain family?
Expand Down Expand Up @@ -92,7 +92,7 @@ func (e ExecuteOffchainConfig) Validate() error {
return nil
}

func (e ExecuteOffchainConfig) IsUSDCEnabled() bool {
func (e *ExecuteOffchainConfig) IsUSDCEnabled() bool {
for _, ob := range e.TokenDataObservers {
if ob.WellFormed() != nil {
continue
Expand Down

0 comments on commit 05807c4

Please sign in to comment.