Skip to content

Commit

Permalink
fix: receipt hook integration tests after foundry update
Browse files Browse the repository at this point in the history
  • Loading branch information
agualis committed Oct 1, 2024
1 parent b20ee98 commit 3cb8df6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,5 @@ jobs:
uses: ./.github/actions/setup
- name: Set up foundry (includes anvil)
uses: foundry-rs/foundry-toolchain@v1
with:
cache: false
- name: Run integration tests
run: pnpm test:integration
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ test('queries add liquidity transaction', async () => {

expect(result.current.sentTokens).toEqual([
{
tokenAddress: '0x198d7387fa97a73f05b8578cdeff8f2a1f34cd1f',
tokenAddress: '0x198d7387Fa97A73F05b8578CdEFf8F2A1f34Cd1F',
humanAmount: '12',
},
{
tokenAddress: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
tokenAddress: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
humanAmount: '0.04',
},
])
Expand Down Expand Up @@ -99,11 +99,11 @@ test('queries remove liquidity transaction', async () => {
expect(result.current.receivedTokens).toEqual([
{
humanAmount: '16597.845312687911573359',
tokenAddress: '0x198d7387fa97a73f05b8578cdeff8f2a1f34cd1f',
tokenAddress: '0x198d7387Fa97A73F05b8578CdEFf8F2A1f34Cd1F',
},
{
humanAmount: '4.553531492712836774',
tokenAddress: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
tokenAddress: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
},
])

Expand All @@ -112,8 +112,8 @@ test('queries remove liquidity transaction', async () => {

describe('queries swap transaction', () => {
const polAddress = '0x0000000000000000000000000000000000001010'
const wPolAddress = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'
const daiAddress = '0x8f3cf7ad23cd3cadbd9735aff958023239c6a063'
const wPolAddress = '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270'
const daiAddress = '0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063'

test('when the native asset is not included (from DAI to WPOL)', async () => {
const userAddress = '0xf76142b79Db34E57852d68F9c52C0E24f7349647'
Expand Down

0 comments on commit 3cb8df6

Please sign in to comment.