Skip to content

Commit f632239

Browse files
authored
feat: upgrade solc-typed-ast to v18.2.4 (#63)
Adds support to solidity 0.8.27 and solidity 0.8.28
1 parent ed5a1b0 commit f632239

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@defi-wonderland/natspec-smells",
3-
"version": "1.1.5",
3+
"version": "1.1.6",
44
"description": "Automatically identify missing or incomplete natspec",
55
"homepage": "https://github.com/defi-wonderland/natspec-smells#readme",
66
"repository": {
@@ -28,7 +28,7 @@
2828
},
2929
"dependencies": {
3030
"fast-glob": "3.3.2",
31-
"solc-typed-ast": "18.2.0",
31+
"solc-typed-ast": "18.2.4",
3232
"yargs": "17.7.2"
3333
},
3434
"devDependencies": {

Diff for: test/contracts/LatestVersion.sol

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// SPDX-License-Identifier: MIT
2+
pragma solidity =0.8.28;
3+
4+
contract LatestVersion {}

Diff for: test/parser.test.ts

+12
Original file line numberDiff line numberDiff line change
@@ -424,4 +424,16 @@ describe('Parser', () => {
424424
);
425425
});
426426
});
427+
428+
describe('Contract with latest Solidity version', () => {
429+
beforeAll(async () => {
430+
const compileResult = await getFileCompiledSource('test/contracts/LatestVersion.sol');
431+
contract = compileResult.vContracts.find(({ name }) => name === 'LatestVersion')!;
432+
});
433+
434+
it('should compile contract with latest Solidity version', async () => {
435+
expect(contract).toBeDefined();
436+
expect(contract.name).toBe('LatestVersion');
437+
});
438+
});
427439
});

Diff for: yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -3382,10 +3382,10 @@ slice-ansi@^5.0.0:
33823382
ansi-styles "^6.0.0"
33833383
is-fullwidth-code-point "^4.0.0"
33843384

3385-
3386-
version "18.2.0"
3387-
resolved "https://registry.yarnpkg.com/solc-typed-ast/-/solc-typed-ast-18.2.0.tgz#63917df1174ea1bf3b7c999818fa66aa719edd4b"
3388-
integrity sha512-RgIjnk6KNxhCseeeArwEPMtliLMDNDgi+2OBibHd7BIV4MDxutA77PJK1+gYvokm4g/iwp8BOJMa2yI3NsqlZg==
3385+
3386+
version "18.2.4"
3387+
resolved "https://registry.yarnpkg.com/solc-typed-ast/-/solc-typed-ast-18.2.4.tgz#eecdc23be946c7b93aa9f6fcb75a27954e5ce411"
3388+
integrity sha512-HTkr6b2WMSJ3pgVRf5us/UWjCvfSlvE1yUcHna+miSPerkyppGnZQaJWqrcECa7ZjxmSV7H2buUDKux9hR4ivg==
33893389
dependencies:
33903390
axios "^1.6.8"
33913391
commander "^12.0.0"

0 commit comments

Comments
 (0)