Commit Graph

19541 Commits

Author SHA1 Message Date
Alexander Arlt
c44bb7e7ef Replace raw throw with BOOST_THROW_EXCEPTION. 2021-02-18 20:23:59 -05:00
Bhargava Shastry
5c6633f975
Merge pull request #10974 from ethereum/disable-reasoning-simplifier-fuzzing
Optimiser fuzzer: Disable  reasoning based simplifier runs.
2021-02-18 11:55:19 +01:00
Bhargava Shastry
91b7d60301 Optimiser fuzzer: Disable reasoning based simplifier runs. 2021-02-18 10:48:49 +01:00
chriseth
c812d928fd
Merge pull request #10965 from ethereum/test-intop
Remove unreachable warning for shift/exp operator
2021-02-16 14:18:49 +01:00
Alex Beregszaszi
f766700000 Remove unreachable warning for shift/exp operator 2021-02-16 13:17:58 +00:00
chriseth
8de2686dd2
Merge pull request #10970 from ethereum/import-assert
Remove unreachable assertion for import resolution
2021-02-16 14:06:08 +01:00
Alex Beregszaszi
efe3199981 Remove unreachable assertion for import resolution 2021-02-16 12:55:01 +00:00
chriseth
7ac440f35b
Merge pull request #10968 from enjiniya-sama/develop
Update blind-auction.rst
2021-02-16 13:52:16 +01:00
chriseth
d82b5d495b
Merge pull request #10969 from ethereum/missing-test
Add missing test case for try/catch
2021-02-16 13:45:14 +01:00
Alex Beregszaszi
346344dc7b Add missing test case for try/Catch 2021-02-16 12:33:55 +00:00
chriseth
859220c9bd
Merge pull request #10964 from ethereum/test-yul-func
Turn unreachable error into assertion
2021-02-16 13:33:11 +01:00
Sanad
110b4df1ff
Update blind-auction.rst 2021-02-16 12:09:58 +00:00
Alex Beregszaszi
ded5d721d2 Turn unreachable error into assertion 2021-02-16 10:59:22 +00:00
chriseth
3c4ef23809
Merge pull request #10966 from dms-yondy/grammer-improvement-in-docs
Fixed the grammer of a sentence in the docs
2021-02-16 11:41:05 +01:00
dms-yondy
79e4c6da11 Fixed the grammer of a sentence in the docs 2021-02-16 09:44:31 +00:00
chriseth
7f15be5549
Merge pull request #10963 from ethereum/test-variadic
Remove untriggerable errors on variadic calls (which have been removed)
2021-02-16 10:20:57 +01:00
Alex Beregszaszi
fd9050614a Remove untriggerable errors on variadic calls (which have been removed) 2021-02-15 22:45:57 +00:00
Kamil Śliwak
9d762f381f
Merge pull request #10932 from ssi91/add-sha256-field-to-the-docs
add sha256 field ot the docs
2021-02-15 17:48:02 +01:00
Franziska Heintel
d081b49af9
Merge pull request #10955 from ethereum/docsupdate
[DOCS] Updating contributing section and fixing capitalisation
2021-02-15 17:11:48 +01:00
franzihei
e97a856b45 Updating contributing and fixing capitalisation. 2021-02-15 16:18:11 +01:00
chriseth
f81568f684
Merge pull request #10960 from ethereum/ir-constructor-argument-multiple-slot
[sol2yul] IR constructor argument multiple slot
2021-02-15 14:59:02 +01:00
hrkrshnn
e24a23edcd Semantic test where constructor has a function as parameter 2021-02-15 14:16:28 +01:00
hrkrshnn
0135cae222 Fix IR bug: constructor parameter that needs multiple stack slots
When an argument had multiple stack slots, like `function() external`, there wasn't enough variables
assigned for the constructor. This lead to some mismatch between return values and arguments between
some functions.
2021-02-12 17:42:02 +01:00
Đorđe Mijović
b385b41fa0
Merge pull request #10951 from ethereum/metadataFormatFlag
Metadata format flag
2021-02-12 11:26:54 +01:00
Djordje Mijovic
6e62cbf156 Run metadata tests for every metadata format. 2021-02-12 10:38:03 +01:00
Djordje Mijovic
b598948211 Run gas tests on NoMetadata format only. 2021-02-12 10:38:03 +01:00
Djordje Mijovic
68a4efb2e7 Refactor overwriteRelease flag.
Co-authored-by: Kamil Śliwak <kamil.sliwak@codepoets.it>
2021-02-12 10:37:59 +01:00
chriseth
003701f6bc
Merge pull request #10953 from ethereum/modifier-function-return
[Sol2Yul] IR bug on Modifier with argument being a function return variable
2021-02-11 17:32:40 +01:00
hrkrshnn
a76ff8af1d Added tests for modifiers whose input is a function return value 2021-02-11 16:48:00 +01:00
hrkrshnn
7786e6d561 Fix IR bug when modifier parameter was function return variable
The bug was that function return variables were not part of the m_context.localVariable during
the modifier generation and a looking up them was throwing.
2021-02-11 14:44:55 +01:00
chriseth
1716dcfb57
Merge pull request #10950 from ethereum/removeChecks
[SolYul] Remove (hopefully) unnecessary checks.
2021-02-11 14:10:05 +01:00
chriseth
45dc705683 Remove unnecessary checks. 2021-02-11 13:08:03 +01:00
chriseth
0c7ce4213a
Merge pull request #10880 from ethereum/EnumValue-members
nativeMembers() missing out EnumValue declaration
2021-02-11 11:28:59 +01:00
chriseth
24cc372069 Changelog entry. 2021-02-11 10:50:58 +01:00
chriseth
f4790971ae Add test. 2021-02-11 10:50:54 +01:00
Christian Parpart
9ca389d6cd MemberList.Member's last argument (declaration) made mandatory to avoid accidental missing out during construction. 2021-02-11 10:46:14 +01:00
Christian Parpart
b0d3412fa9 Fixes missing EnumValue declaration in nativeMembers. 2021-02-11 10:46:14 +01:00
chriseth
cbb197f7fa
Merge pull request #10833 from ethereum/ast-precise-name-locations
Extend the Solidity AST for precise locations of names
2021-02-11 10:44:58 +01:00
chriseth
70aa111dbf Update AST Json expectations. 2021-02-11 10:11:24 +01:00
Harikrishnan Mulackal
215233d5c8
Merge pull request #10945 from ethereum/constructor-modifier-bugfix
Fix IR bug about calling the wrong modifier during construction
2021-02-10 21:42:45 +01:00
hrkrshnn
2f30fdaa21 Fix IR bug about calling the wrong modifier during construction 2021-02-10 20:53:11 +01:00
Christian Parpart
32ba5f5ae7 libsolidity: Extend the AST for named AST nodes in order to get precise locations for names.
The actual SourceLocation on an ASTNode is representing the whole
ASTNode whereas in an LSP (for example) you are also interested in the
SourceLocation of a name of a construct (e.g. variable decarlation, function definition, ...).

This also properly encodes non-existend sources as `-1` in the JSON output (eliminating the use of `numeric_limits<size_t>::max()`).
2021-02-10 18:13:09 +01:00
chriseth
72c6932bf5
Merge pull request #10934 from ethereum/useDeployedNaming
Replace "runtime" by "deployed" naming.
2021-02-10 11:42:23 +01:00
chriseth
d616b3f266
Merge pull request #10929 from ethereum/inlinerDocs
Documentation of the inliner in the old optimizer.
2021-02-10 09:16:22 +01:00
Daniel Kirchner
5a59fde073 Documentation of the inliner in the old optimizer. 2021-02-10 09:14:05 +01:00
chriseth
a72ab1c9c1 Replace "runtime" by "deployed" naming. 2021-02-10 00:56:16 +01:00
chriseth
9b20c9840a
Merge pull request #10885 from ethereum/heuristic-revamp
Yul Backend: Get rid of heuristics for finding the matching runtime
2021-02-10 00:49:56 +01:00
ssi91
e4d6273e5e add sha256 field ot the docs 2021-02-10 02:50:44 +07:00
chriseth
f8d74bc3e1
Merge pull request #10928 from RostyslavDzhohola/develop
Changing grammar for clarification
2021-02-09 19:41:03 +01:00
Rostyslav
92251d054d Updating grammar
I have changed pronounce "their" to his/her, she/he to clarify the working process of the smart contract.
2021-02-09 19:38:35 +01:00