From 1de17bd6ef254e570212647678951104974e9699 Mon Sep 17 00:00:00 2001 From: nogo <0xnogo@gmail.com> Date: Tue, 18 Feb 2025 19:24:28 +0400 Subject: [PATCH 1/2] Use src reader instead of dest --- integration-tests/smoke/ccip/ccip_reader_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/integration-tests/smoke/ccip/ccip_reader_test.go b/integration-tests/smoke/ccip/ccip_reader_test.go index d68242c1c96..4ce27da2ada 100644 --- a/integration-tests/smoke/ccip/ccip_reader_test.go +++ b/integration-tests/smoke/ccip/ccip_reader_test.go @@ -1006,13 +1006,13 @@ func Test_GetWrappedNativeTokenPriceUSD(t *testing.T) { t, chain1, map[cciptypes.ChainSelector][]types.BoundContract{ - cciptypes.ChainSelector(chain1): { + cciptypes.ChainSelector(chain2): { { - Address: state.Chains[chain1].FeeQuoter.Address().String(), + Address: state.Chains[chain2].FeeQuoter.Address().String(), Name: consts.ContractNameFeeQuoter, }, { - Address: state.Chains[chain1].Router.Address().String(), + Address: state.Chains[chain2].Router.Address().String(), Name: consts.ContractNameRouter, }, }, @@ -1021,11 +1021,11 @@ func Test_GetWrappedNativeTokenPriceUSD(t *testing.T) { env, ) - prices := reader.GetWrappedNativeTokenPriceUSD(ctx, []cciptypes.ChainSelector{cciptypes.ChainSelector(chain1), cciptypes.ChainSelector(chain2)}) + prices := reader.GetWrappedNativeTokenPriceUSD(ctx, []cciptypes.ChainSelector{cciptypes.ChainSelector(chain), cciptypes.ChainSelector(chain2)}) // Only chainD has reader contracts bound require.Len(t, prices, 1) - require.Equal(t, testhelpers.DefaultWethPrice, prices[cciptypes.ChainSelector(chain1)].Int) + require.Equal(t, testhelpers.DefaultWethPrice, prices[cciptypes.ChainSelector(chain2)].Int) } // Benchmark Results: From 8f3052a7c1901d248504999d98d264e2e8ecf9f8 Mon Sep 17 00:00:00 2001 From: nogo <0xnogo@gmail.com> Date: Tue, 18 Feb 2025 19:33:08 +0400 Subject: [PATCH 2/2] fix typo --- integration-tests/smoke/ccip/ccip_reader_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-tests/smoke/ccip/ccip_reader_test.go b/integration-tests/smoke/ccip/ccip_reader_test.go index 4ce27da2ada..27987191e8f 100644 --- a/integration-tests/smoke/ccip/ccip_reader_test.go +++ b/integration-tests/smoke/ccip/ccip_reader_test.go @@ -1021,7 +1021,7 @@ func Test_GetWrappedNativeTokenPriceUSD(t *testing.T) { env, ) - prices := reader.GetWrappedNativeTokenPriceUSD(ctx, []cciptypes.ChainSelector{cciptypes.ChainSelector(chain), cciptypes.ChainSelector(chain2)}) + prices := reader.GetWrappedNativeTokenPriceUSD(ctx, []cciptypes.ChainSelector{cciptypes.ChainSelector(chain1), cciptypes.ChainSelector(chain2)}) // Only chainD has reader contracts bound require.Len(t, prices, 1)