Commit Graph

22480 Commits

Author SHA1 Message Date
Mathias L. Baumann
b02f64818b
Merge pull request #13096 from victorknox/develop
Moved Keywords section from 'Cheatsheet' to 'Units and Globally Available Variables'
2022-07-06 15:30:36 +02:00
Mathias L. Baumann
45f5616b12
Merge pull request #12679 from devtooligan/tweak/expand-collide-definition
tweak: expand definition of suggested collision naming convention
2022-07-06 15:04:40 +02:00
Kamil Śliwak
4c85cb880e
Merge pull request #13238 from ethereum/improve-stack-too-deep-message
Improved stack too deep message when compiled without --optimize
2022-07-06 12:43:36 +02:00
Kamil Śliwak
3bc68139fd
Merge pull request #13250 from timweri/update_rangev3_to_0.12.0
Update rangev3 to 0.12.0
2022-07-06 12:38:55 +02:00
Duc Thanh Nguyen
2215b6d44b Update rangev3 to 0.12.0 2022-07-05 15:55:12 -04:00
Mathias L. Baumann
c8aed8c150
Merge pull request #13205 from ethereum/fix-stack-overflow-importing-large-AST-json-file
Fix segmentation fault when  importing large AST from json file
2022-07-05 18:56:38 +02:00
Matheus Aguiar
290bd4fd2d Added a flag to record when a source is reconstructed from JSON so garbage code snippets are not printed after source location. 2022-07-05 11:41:24 -03:00
Kamil Śliwak
a53f15f45f
Merge pull request #13240 from derekg/test-fix
Fix C++ compilation errors on 32-bit Raspbian due to `unsigned` -> `int` conversion
2022-07-04 22:08:06 +02:00
Mathias L. Baumann
d4e2c2cc89
Merge pull request #13185 from ethereum/functionCall_locations
Add location for parameter names in FunctionCall ASTNode
2022-07-04 16:40:45 +02:00
Derek Gottfrid
3f62ab069c fix test w/ signed issues 2022-07-03 16:33:22 -04:00
hrkrshnn
0b2a670a94 Improved stack too deep message when compiled without --optimize 2022-07-03 14:03:00 +02:00
matheusaaguiar
5de5120497
Merge pull request #13105 from CJ42/docs/address-conversion
docs: add notice about `address` conversion prior to 0.8.0
2022-07-01 10:26:38 -03:00
CJ42
e4d3425ad9 docs: add uint160 type in address conversion section
docs: add notice for uint conversion before 0.8.0

docs: edit sentence structure + remove 'result in `address payable`'

docs: add keyword 'explicitly' to be more specific for `address payable`

docs: edit notice uint to address conversion change since 0.8.0

Co-authored-by: Kamil Śliwak <cameel2@gmail.com>
2022-07-01 09:43:24 -03:00
Mathias L. Baumann
48669b4bec
Merge pull request #13219 from ethereum/whiskers
Add whiskers test for weird case
2022-06-30 17:45:54 +02:00
Mathias L. Baumann
4e721273ed
Merge pull request #13220 from fulldecent/patch-26
Update naming of Mainnet
2022-06-30 17:41:29 +02:00
Alex Beregszaszi
cae1571aa7 Add whiskers test for weird case 2022-06-30 17:00:23 +02:00
William Entriken
2a957413d0 Update naming of Mainnet 2022-06-30 16:47:11 +02:00
Mathias L. Baumann
05496064fe
Merge pull request #13189 from ethereum/fix-externalTests-script
Enabled external tests to use relative paths to solc binary.
2022-06-29 19:46:00 +02:00
Mathias L. Baumann
b988d3ed37
Merge pull request #13184 from ethereum/memberAccess_locations
Add location for member in MemberAccess ASTNode
2022-06-29 19:25:57 +02:00
Matheus Aguiar
5b8a9509fc Enable each external script to work with solc binary relative path. 2022-06-29 13:55:21 -03:00
Mathias L. Baumann
2e334c30ae
Merge pull request #13229 from ethereum/temp-fix-ext
Fix external test ens
2022-06-29 18:54:26 +02:00
Marenz
3a5218d3d5 Add location for parameter names in FunctionCall ASTNode 2022-06-29 18:37:36 +02:00
Marenz
ee710eadd4 Add location for member in MemberAccess ASTNode 2022-06-29 18:37:09 +02:00
Marenz
4d8a14b653 Fix external test ens
By using the last known working commit.
Only a temporary measure.
2022-06-29 17:54:35 +02:00
chriseth
b70e064e8f
Merge pull request #13130 from ethereum/check-overflow-after-add-sub-operations
Check overflow after add sub operations
2022-06-27 15:33:57 +02:00
Mathias L. Baumann
2397f09b79
Merge pull request #13182 from ethereum/identifierPath_declarations
Add all path declarations in IdentifierPath annotation
2022-06-27 12:35:50 +02:00
Mathias L. Baumann
9d72842635
Merge pull request #13163 from Ruko97/formatNumberReadable_signed_int
formatNumberReadable now prints signed integers as well
2022-06-27 12:31:32 +02:00
Hari
046423f272
Merge pull request #13191 from aiman/doc-decimal-literal-trailing-dots
docs: Disallow decimal literals with trailing dots
2022-06-27 11:08:02 +02:00
victorknox
7445a4803f Moved Keywords section from 'Cheatsheet' to 'Units and Globally Available Variables' 2022-06-24 10:23:31 +05:30
Ishtiaque Zahid
61febbd249 formatNumberReadable now prints signed integers as well 2022-06-24 07:15:15 +06:00
Matheus Aguiar
4fd5c11af7 Checks for overflow/underflow after add/sub operations. 2022-06-23 14:41:12 -03:00
Mathias L. Baumann
3ed9a38abc
Merge pull request #12966 from a3d4/fix-ice-structtype-nativemembers
Fix ICE caused by an immutable struct with mapping
2022-06-23 16:11:28 +02:00
Mathias L. Baumann
70ca05fd73
Merge pull request #13183 from ethereum/identifierPath_locations
Add all path locations to the IdentifierPath ASTNode
2022-06-23 14:39:41 +02:00
Aiman Baharna
392b1872b3 docs: Disallow decimal literals with trailing dots
Currently the documentation suggests that a decimal literal can omit the
fractional part [1]:

> Decimal fractional literals are formed by a `.` with at least one
> number on one side. Examples include `1.`, `.1` and `1.3`.

However, commit ac68710 (May 30, 2018) disallowed trailing dots that are
not followed by a number [2].

Using decimal literals of the form `1.` will actually result in a
`ParserError` and so the docs should no longer recommend this form.

[1] https://docs.soliditylang.org/en/v0.8.15/types.html#rational-and-integer-literals
[2] ac68710789
2022-06-22 17:19:12 +01:00
Mathias L. Baumann
a2a88afd98
Merge pull request #13167 from ywon0925/ICE-isoltest
Fix validation error causing ICE with isoltest --test
2022-06-22 17:29:34 +02:00
ywon0925
0ee38c5d54 Rename boostTest.cpp to soltest.cpp, changed CMakeLists.txt accordingly 2022-06-22 21:14:42 +09:00
ywon0925
b78960c604 Add a Catch to handle exception 2022-06-22 21:14:42 +09:00
Mathias L. Baumann
03409beb1d
Update libsolidity/analysis/NameAndTypeResolver.h
Co-authored-by: Damian Wechman <damian.wechman.it@gmail.com>
2022-06-22 13:25:24 +02:00
Damian Wechman
02fdcb3623
Merge pull request #12976 from dflupu/mulmod-opti
Add simplification rules for `mod(mul(X, Y), A)` & `mod(add(X, Y), A)`
2022-06-22 10:10:14 +02:00
Daniel Lupu
8498fdf1d4 Add changelog entries 2022-06-22 09:26:31 +02:00
Daniel Lupu
b99f85ec65 Only apply rules for yul optimizer 2022-06-22 09:26:09 +02:00
Daniel Kirchner
d1e382f2a8 Python Z3 proofs of the rules. 2022-06-22 09:26:09 +02:00
Daniel Lupu
8c5f5c7db0 add rules for mod(mul(X, Y), A) & mod(add(X, Y), A) 2022-06-22 09:26:09 +02:00
Mathias L. Baumann
75300c32a8
Merge pull request #13170 from RohitKS7/develop
fix: Typo
2022-06-21 17:28:56 +02:00
Marenz
5d2e134378 Add all path locations to the IdentifierPath ASTNode 2022-06-21 14:19:45 +02:00
Marenz
18784cff81 Add all path declarations in IdentifierPath annotation 2022-06-20 18:08:57 +02:00
chriseth
c3ea86612e
Merge pull request #13161 from ethereum/rename-converter
Rename ASTJsonConverter to ASTJsonExporter
2022-06-20 14:49:42 +02:00
Rohit Kumar Suman
9bc015071c
fix: Typo
Line 84!
By => With
to the them => to them
2022-06-19 11:56:03 +05:30
Daniel Kirchner
be470c16fe
Merge pull request #13166 from ethereum/libraryNameIsoltestSemanticTestExpectations
Fix for library name updates in isoltest semantics tests.
2022-06-17 17:20:08 +02:00
Daniel Kirchner
14ef22c112 Hot fix for library name updates in isoltest semantics tests. 2022-06-17 16:02:05 +02:00