Skip to content

Commit b851cb7

Browse files
committed
accept interface declaration
1 parent 78bc987 commit b851cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class SolidityStatement {
6767
} else if (this.rawCommand.startsWith('struct ')) {
6868
this.scope = SCOPE.SOURCE_UNIT;
6969
this.hasNoReturnValue = true;
70-
} else if (this.rawCommand.startsWith('contract ')) {
70+
} else if (this.rawCommand.startsWith('contract ') || this.rawCommand.startsWith('interface ')) {
7171
this.scope = SCOPE.SOURCE_UNIT;
7272
this.hasNoReturnValue = true;
7373
} else {

0 commit comments

Comments
 (0)