Skip to content

Commit

Permalink
feat: upgrade solc-typed-ast to v18.2.4 (#63)
Browse files Browse the repository at this point in the history
Adds support to solidity 0.8.27 and solidity 0.8.28
  • Loading branch information
0xChin authored Jan 28, 2025
1 parent ed5a1b0 commit f632239
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@defi-wonderland/natspec-smells",
"version": "1.1.5",
"version": "1.1.6",
"description": "Automatically identify missing or incomplete natspec",
"homepage": "https://github.com/defi-wonderland/natspec-smells#readme",
"repository": {
Expand Down Expand Up @@ -28,7 +28,7 @@
},
"dependencies": {
"fast-glob": "3.3.2",
"solc-typed-ast": "18.2.0",
"solc-typed-ast": "18.2.4",
"yargs": "17.7.2"
},
"devDependencies": {
Expand Down
4 changes: 4 additions & 0 deletions test/contracts/LatestVersion.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// SPDX-License-Identifier: MIT
pragma solidity =0.8.28;

contract LatestVersion {}
12 changes: 12 additions & 0 deletions test/parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,4 +424,16 @@ describe('Parser', () => {
);
});
});

describe('Contract with latest Solidity version', () => {
beforeAll(async () => {
const compileResult = await getFileCompiledSource('test/contracts/LatestVersion.sol');
contract = compileResult.vContracts.find(({ name }) => name === 'LatestVersion')!;
});

it('should compile contract with latest Solidity version', async () => {
expect(contract).toBeDefined();
expect(contract.name).toBe('LatestVersion');
});
});
});
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3382,10 +3382,10 @@ slice-ansi@^5.0.0:
ansi-styles "^6.0.0"
is-fullwidth-code-point "^4.0.0"

[email protected].0:
version "18.2.0"
resolved "https://registry.yarnpkg.com/solc-typed-ast/-/solc-typed-ast-18.2.0.tgz#63917df1174ea1bf3b7c999818fa66aa719edd4b"
integrity sha512-RgIjnk6KNxhCseeeArwEPMtliLMDNDgi+2OBibHd7BIV4MDxutA77PJK1+gYvokm4g/iwp8BOJMa2yI3NsqlZg==
[email protected].4:
version "18.2.4"
resolved "https://registry.yarnpkg.com/solc-typed-ast/-/solc-typed-ast-18.2.4.tgz#eecdc23be946c7b93aa9f6fcb75a27954e5ce411"
integrity sha512-HTkr6b2WMSJ3pgVRf5us/UWjCvfSlvE1yUcHna+miSPerkyppGnZQaJWqrcECa7ZjxmSV7H2buUDKux9hR4ivg==
dependencies:
axios "^1.6.8"
commander "^12.0.0"
Expand Down

0 comments on commit f632239

Please sign in to comment.