Skip to content

Commit

Permalink
missing struct tag + block rpeo
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Feb 10, 2023
1 parent b32b0f8 commit 27a0456
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/relayer/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,18 @@ func newHTTPServer(db relayer.DB, l1EthClient relayer.EthClient, l2EthClient rel
return nil, err
}

blockRepo, err := repo.NewBlockRepository(db)
if err != nil {
return nil, err
}

srv, err := http.NewServer(http.NewServerOpts{
EventRepo: eventRepo,
Echo: echo.New(),
CorsOrigins: strings.Split(os.Getenv("CORS_ORIGINS"), ","),
L1EthClient: l1EthClient,
L2EthClient: l2EthClient,
BlockRepo: blockRepo,
})
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion packages/relayer/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type Event struct {
CanonicalTokenSymbol string `json:"canonicalTokenSymbol"`
CanonicalTokenName string `json:"canonicalTokenName"`
CanonicalTokenDecimals uint8 `json:"canonicalTokenDecimals"`
Amount string
Amount string `json:"amount"`
}

// SaveEventOpts
Expand Down

0 comments on commit 27a0456

Please sign in to comment.