Skip to content

Commit f7df10d

Browse files
committed
clean empty arguments in modifier
1 parent 8686a27 commit f7df10d

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

tests/format/FunctionDefinitionsV0.5.0/FunctionDefinitions.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ contract FunctionDefinitions {
22
function () external {}
33
function () external payable {}
44
function () external modify(123) payable {}
5+
function () external modify() payable {}
56
}

tests/format/FunctionDefinitionsV0.5.0/__snapshots__/format.test.js.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ contract FunctionDefinitions {
1111
function () external {}
1212
function () external payable {}
1313
function () external modify(123) payable {}
14+
function () external modify() payable {}
1415
}
1516
1617
=====================================output=====================================
1718
contract FunctionDefinitions {
1819
function() external {}
1920
function() external payable {}
2021
function() external payable modify(123) {}
22+
function() external payable modify {}
2123
}
2224
2325
================================================================================

0 commit comments

Comments
 (0)