Skip to content

Commit

Permalink
fix: ERC20 payment test
Browse files Browse the repository at this point in the history
  • Loading branch information
aimensahnoun committed Oct 28, 2024
1 parent 7a0cebf commit 635cc6f
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,16 @@ describe('deploySingleRequestProxy', () => {
});

it('should pay with ERC20SingleRequestProxy', async () => {
const amount = '1000';
const amount = '200';

const testERC20 = await new TestERC20__factory(wallet).deploy(1000);

const proxyAddress = await deploySingleRequestProxy(erc20Request, wallet);
const updatedERC20Request = {
...erc20Request,
currencyInfo: { ...erc20Request.currencyInfo, value: testERC20.address },
};

const proxyAddress = await deploySingleRequestProxy(updatedERC20Request, wallet);

const initialProxyBalance = await testERC20.balanceOf(wallet.address);

Expand Down

0 comments on commit 635cc6f

Please sign in to comment.