chriseth
c4a6a63f36
Tests for view and pure.
2018-04-12 00:10:25 +02:00
chriseth
44c0d7ca5e
Tests.
2018-04-12 00:10:25 +02:00
Alex Beregszaszi
d56acb68ab
Add abi.encode, abi.encodePacked, abi.encodeWithSelector and abi.encodeWithSignature.
2018-04-11 22:32:10 +02:00
chriseth
ee5d0ef79b
Merge pull request #3752 from ethereum/fixStateVariableParsing
...
Fix state variable parsing
2018-04-11 22:25:36 +02:00
chriseth
b5a696ad48
Properly cope with constructor headers.
2018-04-11 22:00:21 +02:00
chriseth
52f68d3b63
Update expectations.
2018-04-11 22:00:21 +02:00
chriseth
4e1ea0866d
Extract modifier tests.
2018-04-11 22:00:21 +02:00
chriseth
2ad1acaf72
Warn if modifiers are applied to functions without implementation.
2018-04-11 22:00:21 +02:00
chriseth
d64e933327
Changelog entry.
2018-04-11 22:00:20 +02:00
chriseth
42b90ad4c3
New tests for function state variables.
2018-04-11 22:00:04 +02:00
chriseth
6d289783b4
Fix state variable parsing.
2018-04-11 22:00:04 +02:00
chriseth
08e807aea0
Add expectations.
2018-04-11 22:00:04 +02:00
chriseth
bd27ce0e25
Extract function type tests.
2018-04-11 22:00:04 +02:00
Alex Beregszaszi
7626c8ab72
Merge pull request #3855 from ldct/patch-3
...
mark --formal as deprecated in cli options
2018-04-11 20:57:01 +01:00
chriseth
ae3fca6db2
Merge pull request #3863 from ethereum/fixGasEstimation
...
Correctly ignore costs of fallback for other functions.
2018-04-11 21:53:41 +02:00
Daniel Kirchner
8d355df14c
Merge pull request #3830 from ethereum/fix-include-paths-errors
...
Fix include paths errors
2018-04-11 21:25:30 +02:00
Li Xuanji
576964bd01
Mark --formal as deprecated in CLI options
2018-04-11 20:08:41 +01:00
Alex Beregszaszi
418e2725b5
Merge pull request #3862 from ethereum/fixConstantEvaluatorTuples
...
Fix ConstantEvaluator to correctly handle single element tuples (i.e. parenthesis).
2018-04-11 19:49:21 +01:00
chriseth
928ce08845
Correctly ignore costs of fallback for other functions.
2018-04-11 19:42:34 +01:00
Daniel Kirchner
c15cb6cc7a
Prevent information about file existence outside the allowed paths to leak by mimicing boost::filesystem::weakly_canonical.
2018-04-11 18:52:22 +02:00
Daniel Kirchner
cb548f6f53
Fix ConstantEvaluator to correctly handle single element tuples.
2018-04-11 18:30:34 +02:00
Daniel Kirchner
fdcbf1337a
Syntax Tests: extract array_length_* tests.
2018-04-11 18:01:24 +02:00
chriseth
d50d1f0ac1
Merge pull request #3580 from ethereum/asm-bitshift-optim
...
Add simplification rule for bitwise shifting
2018-04-11 17:18:31 +02:00
chriseth
29bde7fc2a
Merge pull request #3859 from ethereum/fixerrorlines
...
Fix line numbers for errors.
2018-04-11 17:18:03 +02:00
chriseth
05781c955b
Fix line numbers for errors.
2018-04-11 16:37:49 +02:00
chriseth
c9bdbcf470
Merge pull request #3309 from ethereum/limit-errors
...
Limit the number of errors output in a single run to 256
2018-04-11 16:13:41 +02:00
chriseth
b7b6d0ce7c
Merge pull request #3799 from meowingtwurtle/fixLiteralComparisons
...
Fix bug in typechecking when comparing rational literals
2018-04-11 14:39:13 +02:00
Jason Cobb
3b7b962b66
Fix bug in typechecking when comparing rational literals
2018-04-11 12:03:08 +02:00
Alex Beregszaszi
2e73ef5ac5
Ignore shift warnings on constantinople tests
2018-04-10 15:29:55 +01:00
Alex Beregszaszi
4450034174
Run tests in constantinople mode too
2018-04-10 15:29:55 +01:00
Alex Beregszaszi
5f76f47f2e
Add end to end tests for SHL/SHR/SAR instructions (constantinople only)
2018-04-10 15:29:54 +01:00
Daniel Kirchner
41d81a7432
Merge pull request #3842 from ethereum/syntaxTestsSourceLocations
...
Add source locations to syntax test expectations.
2018-04-10 16:16:04 +02:00
Daniel Kirchner
f03695731b
Add source locations to syntax test expectations.
2018-04-10 14:08:22 +02:00
Daniel Kirchner
2bc4ec31e2
Merge pull request #3853 from ethereum/modifierStyleWithoutParentheses
...
Modifier style constructor calls without parentheses are an error.
2018-04-10 14:05:06 +02:00
Daniel Kirchner
3eedbc6a9c
Error when using no parentheses in modifier-style constructor calls.
2018-04-10 12:09:34 +02:00
chriseth
0546a36aca
Merge pull request #3836 from netrunnerX/develop
...
Update solidity-by-example.rst.
2018-04-10 11:48:29 +02:00
chriseth
b52614116e
Merge pull request #3821 from ethereum/warn-constructor-override
...
Warn constructor override
2018-04-10 11:39:31 +02:00
chriseth
27385d6ded
Merge pull request #3852 from hydai/fix_typo
...
Fixed typos
2018-04-10 10:03:08 +02:00
hydai
aaa8edc36d
Fixed typos
2018-04-10 13:41:35 +08:00
Alex Beregszaszi
cb352edd26
Add constant optimiser for SHR/SHL instructions
2018-04-09 20:07:44 +01:00
NetX
089c295641
Update solidity-by-example.rst
2018-04-09 16:57:38 +02:00
Daniel Kirchner
549ba801fb
Use the most derived contract as main location in case of diamond inheritance.
2018-04-09 16:23:18 +02:00
Daniel Kirchner
b918a105a4
Move constructor argument override check to TypeChecker and reuse annotations in ContractCompiler.
2018-04-09 15:26:08 +02:00
Daniel Kirchner
b8fdb666e2
Allow duplicated constructor calls, if no arguments; support for multiple inheritance; backwards compatibility.
...
# tmp
2018-04-09 15:26:05 +02:00
Federico Bond
4e037281ac
Error on duplicated super constructor calls
2018-04-09 11:22:35 +02:00
chriseth
fe61435c27
Merge pull request #3839 from ethereum/unusedVariableWarningOrder
...
Static Analyzer: Fix non-deterministic order of unused variable warni…
2018-04-06 18:35:21 +02:00
Daniel Kirchner
b2753aa053
Static Analyzer: Fix non-deterministic order of unused variable warnings.
2018-04-06 18:10:26 +02:00
chriseth
12ba3ee082
Merge pull request #3609 from RobbieFerguson/patch-1
...
Update Delegatecall Description in Docs
2018-04-06 16:39:54 +02:00
Robbie Ferguson
49567b3f4c
Update Delegatecall Description in Docs
...
The previous description did not include the fact that the storage locations of the two contracts must align up until the storage variable(s) affected in order for the called contract to successfully write to the caller's storage. If they are misaligned, delegatecall will silently fail. This is difficult to debug without underlying knowledge of how delegatecall works, and clarity in the docs would certainly be helpful.
2018-04-06 16:38:59 +02:00
chriseth
866df15daa
Merge pull request #3832 from ethereum/commonSubexpressionEliminator
...
Common subexpression eliminator.
2018-04-06 15:41:24 +02:00