Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
AnieeG committed Sep 19, 2024
1 parent 53b4c40 commit fe85444
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions integration-tests/deployment/ccip/view/types/v1_2/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ type RouterView struct {

func GenerateRouterView(r *router.Router) (RouterView, error) {
meta, err := types.NewContractMetaData(r, r.Address())
if err != nil {
return RouterView{}, fmt.Errorf("view error to get router metadata: %w", err)
}
wrappedNative, err := r.GetWrappedNative(nil)
if err != nil {
return RouterView{}, fmt.Errorf("view error to get router wrapped native: %w", err)
Expand Down
4 changes: 3 additions & 1 deletion integration-tests/deployment/ccip/view/types/v1_6/onramp.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ func GenerateOnRampView(
}
// populate sourceTokens from token admin registry contract
sourceTokens, err := taContract.GetAllConfiguredTokens(nil, 0, 10)

if err != nil {
return OnRampView{}, fmt.Errorf("failed to get all configured tokens: %w", err)
}
sourceTokenToPool := make(map[common.Address]common.Address)
for _, sourceToken := range sourceTokens {
pool, err := onRampContract.GetPoolBySourceToken(nil, 0, sourceToken)
Expand Down

0 comments on commit fe85444

Please sign in to comment.