fix: remove-approval

This commit is contained in:
Samarendra Gouda 2024-04-15 15:32:31 +05:30
parent 29d6772fa0
commit 4d5fdc23bf
2 changed files with 1 additions and 4 deletions

View File

@ -24,10 +24,7 @@ contract EETHContract is Helpers, Basic, Events {
: _amount;
uint256 _ethBeforeBalance = address(this).balance;
WETH_CONTRACT.approve(address(WETH_CONTRACT), _amount);
WETH_CONTRACT.withdraw(_amount);
uint256 _ethAfterBalance = address(this).balance;
uint256 _ethAmount = sub(_ethAfterBalance, _ethBeforeBalance);

View File

@ -142,7 +142,7 @@ describe("eETH Staking", function () {
});
it("Should deposit wETH into eETH", async function () {
const amount = ethers.utils.parseEther("1");
const amount = ethers.utils.parseEther("10");
const eETHTAddress = "0x35fA164735182de50811E8e2E824cFb9B6118ac2";
const IERC20ABI = [
"function approve(address spender, uint256 amount) external returns (bool)",