Skip to content

Commit

Permalink
[Update] Empty scenario for erc721penaltyfee
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyPoslavskiy committed Jun 24, 2024
1 parent 65aa9ed commit 7f9ea85
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 3 additions & 3 deletions contracts/factories/ERC721PenaltyFeeFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SPDX-License-Identifier: MIT
*/

pragma solidity 0.8.25;
import {ERC721PenaltyFeepPool} from "../pools/ERC721/ERC721PenaltyFeePool.sol";
import {ERC721PenaltyFeePool} from "../pools/ERC721/ERC721PenaltyFeePool.sol";
import {IPenaltyFeeFactory} from "../interfaces/IFactories/IPenaltyFeeFactory.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
Expand All @@ -29,7 +29,7 @@ contract ERC721PenaltyFeeStakingFactory is Ownable, IPenaltyFeeFactory {
if (req.info.requestStatus != Status.APPROVED) revert InvalidRequestStatus();
if (msg.sender != req.info.deployer) revert InvalidCaller();
newPoolAddress = address(
new ERC721PenaltyFeepPool{
new ERC721PenaltyFeePool{
salt: keccak256(
abi.encode(
req.data.stakeToken,
Expand All @@ -50,7 +50,7 @@ contract ERC721PenaltyFeeStakingFactory is Ownable, IPenaltyFeeFactory {
)
);
stakingPools.push(newPoolAddress);
ERC721PenaltyFeepPool(newPoolAddress).transferOwnership(msg.sender);
ERC721PenaltyFeePool(newPoolAddress).transferOwnership(msg.sender);
emit StakingPoolDeployed(newPoolAddress, id);
}

Expand Down
2 changes: 1 addition & 1 deletion contracts/pools/ERC721/ERC721PenaltyFeePool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {IPoolERC721} from "../../interfaces/IPools/IERC721Pool.sol";
import {IPoolErrors} from "../../interfaces/IPools/IPoolErrors.sol";
import {IPenaltyFeePoolStorage} from "../../interfaces/IPools/IPenaltyFeePool.sol";

contract ERC721PenaltyFeepPool is
contract ERC721PenaltyFeePool is
ReentrancyGuard,
Ownable,
IERC721Receiver,
Expand Down
10 changes: 10 additions & 0 deletions test/ERC721PenaltyFeeScenario.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { expect } from "chai";
import { ethers } from "hardhat";
import { time } from "@nomicfoundation/hardhat-network-helpers";
import {
ERC721PenaltyFeePool,
ERC20MockToken,
ERC721MockToken,
ERC721PenaltyFeeStakingFactory,
} from "../typechain";
import { HardhatEthersSigner } from "@nomicfoundation/hardhat-ethers/signers";

0 comments on commit 7f9ea85

Please sign in to comment.