Skip to content

Commit d5e92bf

Browse files
authored
ready to publish (#949)
* adding test cases for solidity 0.8.22 * Bump @solidity-parser/parser from 0.16.1 to 0.16.2 * bump version
1 parent 57344d4 commit d5e92bf

File tree

5 files changed

+22
-9
lines changed

5 files changed

+22
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ For more details and please have a look at [Prettier's documentation](https://pr
7575

7676
### Creating a package for the Browser
7777

78-
_Added in v1.1.4_
78+
_Added in v1.2.0_
7979

8080
If you are creating your own package to be run in a browser, you might want to import the standalone files directly.
8181

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "prettier-plugin-solidity",
3-
"version": "1.1.4-dev",
3+
"version": "1.2.0",
44
"description": "A Prettier Plugin for automatically formatting your Solidity code.",
55
"type": "module",
66
"main": "./src/index.js",
@@ -110,7 +110,7 @@
110110
"webpack-cli": "^5.1.4"
111111
},
112112
"dependencies": {
113-
"@solidity-parser/parser": "^0.16.1",
113+
"@solidity-parser/parser": "^0.16.2",
114114
"semver": "^7.5.4",
115115
"solidity-comments-extractor": "^0.0.7"
116116
},

tests/format/AllSolidityFeatures/AllSolidityFeatures.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ import * as SomeSymbol from "AnotherFile.sol";
1111
import {symbol1 as alias, symbol2} from "File.sol";
1212

1313
interface i {
14+
event ForeignEvent();
1415
function f();
1516
}
1617

18+
event E();
19+
1720
contract c {
1821
function c()
1922
{
23+
emit i.ForeignEvent();
2024
val1 = 1 wei; // 1
2125
val2 = 1 szabo; // 1 * 10 ** 12
2226
val3 = 1 finney; // 1 * 10 ** 15

tests/format/AllSolidityFeatures/__snapshots__/jsfmt.spec.js.snap

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@ import * as SomeSymbol from "AnotherFile.sol";
1919
import {symbol1 as alias, symbol2} from "File.sol";
2020
2121
interface i {
22+
event ForeignEvent();
2223
function f();
2324
}
2425
26+
event E();
27+
2528
contract c {
2629
function c()
2730
{
31+
emit i.ForeignEvent();
2832
val1 = 1 wei; // 1
2933
val2 = 1 szabo; // 1 * 10 ** 12
3034
val3 = 1 finney; // 1 * 10 ** 15
@@ -563,11 +567,16 @@ import "AnotherFile.sol" as SomeSymbol;
563567
import {symbol1 as alias, symbol2} from "File.sol";
564568
565569
interface i {
570+
event ForeignEvent();
571+
566572
function f();
567573
}
568574
575+
event E();
576+
569577
contract c {
570578
function c() {
579+
emit i.ForeignEvent();
571580
val1 = 1 wei; // 1
572581
val2 = 1 szabo; // 1 * 10 ** 12
573582
val3 = 1 finney; // 1 * 10 ** 15

0 commit comments

Comments
 (0)