Skip to content

Commit

Permalink
fix(eventindexer): upodate indexnfts flag to bool (#14905)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Oct 6, 2023
1 parent 50621a4 commit a4a982e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/eventindexer/cmd/flags/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ var (
Category: indexerCategory,
EnvVars: []string{"SYNC_MODE"},
}
IndexNFTs = &cli.StringFlag{
IndexNFTs = &cli.BoolFlag{
Name: "indexNfts",
Usage: "Whether to index nft transfer events orn ot",
Required: false,
Expand Down
3 changes: 1 addition & 2 deletions packages/eventindexer/indexer/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ var (
subscriptionBackoff = "30"
syncMode = "sync"
watchMode = "filter"
indexNFTs = "true"
layer = "l1"
)

Expand Down Expand Up @@ -93,7 +92,7 @@ func TestNewConfigFromCliContext(t *testing.T) {
"-" + flags.SubscriptionBackoff.Name, subscriptionBackoff,
"-" + flags.SyncMode.Name, syncMode,
"-" + flags.WatchMode.Name, watchMode,
"-" + flags.IndexNFTs.Name, indexNFTs,
"-" + flags.IndexNFTs.Name, "true",
"-" + flags.Layer.Name, layer,
}))
}

0 comments on commit a4a982e

Please sign in to comment.