From fe85444e24d092c53ededdf0e7919cca3e169c18 Mon Sep 17 00:00:00 2001 From: AnieeG Date: Wed, 18 Sep 2024 18:35:23 -0700 Subject: [PATCH] fix lint --- integration-tests/deployment/ccip/view/types/v1_2/router.go | 3 +++ integration-tests/deployment/ccip/view/types/v1_6/onramp.go | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/integration-tests/deployment/ccip/view/types/v1_2/router.go b/integration-tests/deployment/ccip/view/types/v1_2/router.go index c1df1be4ca7..9d3711d0c28 100644 --- a/integration-tests/deployment/ccip/view/types/v1_2/router.go +++ b/integration-tests/deployment/ccip/view/types/v1_2/router.go @@ -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) diff --git a/integration-tests/deployment/ccip/view/types/v1_6/onramp.go b/integration-tests/deployment/ccip/view/types/v1_6/onramp.go index 5967c787722..a5fe13bfb5c 100644 --- a/integration-tests/deployment/ccip/view/types/v1_6/onramp.go +++ b/integration-tests/deployment/ccip/view/types/v1_6/onramp.go @@ -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)