Skip to content

Commit 77e0692

Browse files
author
dbale-altoros
committed
fix: reentrancy rule path
1 parent 2bf186f commit 77e0692

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

lib/rules/security/reentrancy.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ const meta = {
1515
good: [
1616
{
1717
description: 'Invulnerable Contract 1',
18-
code: require('../../../test/fixtures/security/reentrancy-invulenarble')[0],
18+
code: require('../../../test/fixtures/security/reentrancy-invulnerable')[0],
1919
},
2020
{
2121
description: 'Invulnerable Contract 2',
22-
code: require('../../../test/fixtures/security/reentrancy-invulenarble')[1],
22+
code: require('../../../test/fixtures/security/reentrancy-invulnerable')[1],
2323
},
2424
{
2525
description: 'Invulnerable Contract 3',
26-
code: require('../../../test/fixtures/security/reentrancy-invulenarble')[2],
26+
code: require('../../../test/fixtures/security/reentrancy-invulnerable')[2],
2727
},
2828
],
2929
bad: [
3030
{
3131
description: 'Vulnerable Contract 1',
32-
code: require('../../../test/fixtures/security/reentrancy-vulenarble')[0],
32+
code: require('../../../test/fixtures/security/reentrancy-vulnerable')[0],
3333
},
3434
{
3535
description: 'Vulnerable Contract 2',
36-
code: require('../../../test/fixtures/security/reentrancy-vulenarble')[1],
36+
code: require('../../../test/fixtures/security/reentrancy-vulnerable')[1],
3737
},
3838
],
3939
},
File renamed without changes.
File renamed without changes.

test/rules/security/reentrancy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const linter = require('../../../lib/index')
22
const { assertWarnsCount, assertErrorMessage, assertNoWarnings } = require('../../common/asserts')
33

44
describe('Linter - reentrancy', () => {
5-
require('../../fixtures/security/reentrancy-vulenarble').forEach((curCode) =>
5+
require('../../fixtures/security/reentrancy-vulnerable').forEach((curCode) =>
66
it('should return warn when code contains possible reentrancy', () => {
77
const report = linter.processStr(curCode, {
88
rules: { reentrancy: 'warn' },
@@ -13,7 +13,7 @@ describe('Linter - reentrancy', () => {
1313
})
1414
)
1515

16-
require('../../fixtures/security/reentrancy-invulenarble').forEach((curCode) =>
16+
require('../../fixtures/security/reentrancy-invulnerable').forEach((curCode) =>
1717
it('should not return warn when code do not contains transfer', () => {
1818
const report = linter.processStr(curCode, {
1919
rules: { reentrancy: 'warn' },

0 commit comments

Comments
 (0)