Skip to content

Commit

Permalink
Fix Test_GetWrappedNativeTokenPriceUSD (#16454)
Browse files Browse the repository at this point in the history
* Use src reader instead of dest

* fix typo
  • Loading branch information
0xnogo authored Feb 18, 2025
1 parent 537ef14 commit 9f8bce8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integration-tests/smoke/ccip/ccip_reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
Expand All @@ -1025,7 +1025,7 @@ func Test_GetWrappedNativeTokenPriceUSD(t *testing.T) {

// 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:
Expand Down

0 comments on commit 9f8bce8

Please sign in to comment.