Skip to content

Commit

Permalink
ready to publish (#949)
Browse files Browse the repository at this point in the history
* adding test cases for solidity 0.8.22

* Bump @solidity-parser/parser from 0.16.1 to 0.16.2

* bump version
  • Loading branch information
Janther authored Nov 9, 2023
1 parent 57344d4 commit d5e92bf
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ For more details and please have a look at [Prettier's documentation](https://pr

### Creating a package for the Browser

_Added in v1.1.4_
_Added in v1.2.0_

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

Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prettier-plugin-solidity",
"version": "1.1.4-dev",
"version": "1.2.0",
"description": "A Prettier Plugin for automatically formatting your Solidity code.",
"type": "module",
"main": "./src/index.js",
Expand Down Expand Up @@ -110,7 +110,7 @@
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@solidity-parser/parser": "^0.16.1",
"@solidity-parser/parser": "^0.16.2",
"semver": "^7.5.4",
"solidity-comments-extractor": "^0.0.7"
},
Expand Down
4 changes: 4 additions & 0 deletions tests/format/AllSolidityFeatures/AllSolidityFeatures.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ import * as SomeSymbol from "AnotherFile.sol";
import {symbol1 as alias, symbol2} from "File.sol";

interface i {
event ForeignEvent();
function f();
}

event E();

contract c {
function c()
{
emit i.ForeignEvent();
val1 = 1 wei; // 1
val2 = 1 szabo; // 1 * 10 ** 12
val3 = 1 finney; // 1 * 10 ** 15
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,16 @@ import * as SomeSymbol from "AnotherFile.sol";
import {symbol1 as alias, symbol2} from "File.sol";
interface i {
event ForeignEvent();
function f();
}
event E();
contract c {
function c()
{
emit i.ForeignEvent();
val1 = 1 wei; // 1
val2 = 1 szabo; // 1 * 10 ** 12
val3 = 1 finney; // 1 * 10 ** 15
Expand Down Expand Up @@ -563,11 +567,16 @@ import "AnotherFile.sol" as SomeSymbol;
import {symbol1 as alias, symbol2} from "File.sol";
interface i {
event ForeignEvent();
function f();
}
event E();
contract c {
function c() {
emit i.ForeignEvent();
val1 = 1 wei; // 1
val2 = 1 szabo; // 1 * 10 ** 12
val3 = 1 finney; // 1 * 10 ** 15
Expand Down

0 comments on commit d5e92bf

Please sign in to comment.