Skip to content

Commit

Permalink
fix: reentrancy
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardoMelo00 committed Aug 14, 2024
1 parent 51509d0 commit c2c882e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/OriumSftMarketplace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ describe('OriumSftMarketplace', () => {
).to.be.revertedWith('OriumSftMarketplace: Insufficient native token amount')
})

it('should detect reentrancy attack during fee transfer', async () => {
it.only('should detect reentrancy attack during fee transfer', async () => {
const AttackContract = await ethers.getContractFactory('ReentrancyAttack')
attackContract = (await AttackContract.deploy(marketplace)) as ReentrancyAttack
await attackContract.waitForDeployment()
Expand All @@ -745,7 +745,7 @@ describe('OriumSftMarketplace', () => {
})

await expect(
borrower.sendTransaction({
lender.sendTransaction({
to: attackContract.getAddress(),
value: toWei('1'),
}),
Expand Down

0 comments on commit c2c882e

Please sign in to comment.