Skip to content

Commit

Permalink
declare new type for target
Browse files Browse the repository at this point in the history
Co-authored-by: Gabriel de Quadros Ligneul <[email protected]>
  • Loading branch information
magicxyyz and gligneul authored Aug 12, 2024
1 parent bbbcec2 commit 7e37376
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions core/rawdb/accessors_state_arbitrum.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ import (
"github.com/ethereum/go-ethereum/log"
)

type Target string

const (
TargetWavm = "wavm"
TargetArm64 = "arm64"
TargetAmd64 = "amd64"
TargetHost = "host"
TargetWavm Target = "wavm"
TargetArm64 Target = "arm64"
TargetAmd64 Target = "amd64"
TargetHost Target = "host"
)

var Targets = []string{TargetWavm, TargetArm64, TargetAmd64, TargetHost}

Check failure on line 34 in core/rawdb/accessors_state_arbitrum.go

View workflow job for this annotation

GitHub Actions / run-linter

cannot use TargetWavm (constant "wavm" of type Target) as string value in array or slice literal

Check failure on line 34 in core/rawdb/accessors_state_arbitrum.go

View workflow job for this annotation

GitHub Actions / run-linter

cannot use TargetArm64 (constant "arm64" of type Target) as string value in array or slice literal

Check failure on line 34 in core/rawdb/accessors_state_arbitrum.go

View workflow job for this annotation

GitHub Actions / run-linter

cannot use TargetAmd64 (constant "amd64" of type Target) as string value in array or slice literal

Check failure on line 34 in core/rawdb/accessors_state_arbitrum.go

View workflow job for this annotation

GitHub Actions / run-linter

cannot use TargetHost (constant "host" of type Target) as string value in array or slice literal

Check failure on line 34 in core/rawdb/accessors_state_arbitrum.go

View workflow job for this annotation

GitHub Actions / run-tests

cannot use TargetWavm (constant "wavm" of type Target) as string value in array or slice literal

Check failure on line 34 in core/rawdb/accessors_state_arbitrum.go

View workflow job for this annotation

GitHub Actions / run-tests

cannot use TargetArm64 (constant "arm64" of type Target) as string value in array or slice literal

Check failure on line 34 in core/rawdb/accessors_state_arbitrum.go

View workflow job for this annotation

GitHub Actions / run-tests

cannot use TargetAmd64 (constant "amd64" of type Target) as string value in array or slice literal

Check failure on line 34 in core/rawdb/accessors_state_arbitrum.go

View workflow job for this annotation

GitHub Actions / run-tests

cannot use TargetHost (constant "host" of type Target) as string value in array or slice literal
Expand Down

0 comments on commit 7e37376

Please sign in to comment.