mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Add waitTx for some missing scenario actions
This commit is contained in:
parent
38d7711fbd
commit
600912463f
|
@ -128,7 +128,9 @@ export const approve = async (reserveSymbol: string, user: SignerWithAddress, te
|
||||||
|
|
||||||
const token = await getMintableERC20(reserve);
|
const token = await getMintableERC20(reserve);
|
||||||
|
|
||||||
await token.connect(user.signer).approve(pool.address, '100000000000000000000000000000');
|
await waitForTx(
|
||||||
|
await token.connect(user.signer).approve(pool.address, '100000000000000000000000000000')
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const deposit = async (
|
export const deposit = async (
|
||||||
|
@ -314,7 +316,7 @@ export const delegateBorrowAllowance = async (
|
||||||
await expect(delegateAllowancePromise, revertMessage).to.be.revertedWith(revertMessage);
|
await expect(delegateAllowancePromise, revertMessage).to.be.revertedWith(revertMessage);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
await delegateAllowancePromise;
|
await waitForTx(await delegateAllowancePromise);
|
||||||
const allowance = await debtToken.borrowAllowance(user.address, receiver);
|
const allowance = await debtToken.borrowAllowance(user.address, receiver);
|
||||||
expect(allowance.toString()).to.be.equal(
|
expect(allowance.toString()).to.be.equal(
|
||||||
amountToDelegate,
|
amountToDelegate,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user