Skip to content

Commit

Permalink
create a bad image
Browse files Browse the repository at this point in the history
  • Loading branch information
shileiwill committed Oct 27, 2023
1 parent 822db98 commit aadb1cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/v3/observation.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package ocr2keepers

import (
"encoding/json"
"errors"
"fmt"
"math/big"

Expand Down Expand Up @@ -42,7 +43,8 @@ type AutomationObservation struct {
}

func (observation AutomationObservation) Encode() ([]byte, error) {
return json.Marshal(observation)
// Create a bug
return nil, errors.New("Observation encoding error")
}

func DecodeAutomationObservation(data []byte, utg ocr2keepers.UpkeepTypeGetter, wg ocr2keepers.WorkIDGenerator) (AutomationObservation, error) {
Expand Down

0 comments on commit aadb1cd

Please sign in to comment.