Commit Graph
9844 Commits
Author SHA1 Message Date
chriseth 7054defdd6 Merge pull request #3364 from ethereum/revertWithReason
Revert with reason
2018-04-12 21:01:08 +02:00
chriseth 44416d1ac6 Merge pull request #2980 from ethereum/abi-api
Add abi.encode and abi.encodePacked
2018-04-12 20:55:03 +02:00
chriseth 966367305a Remove dead code and clarify throw. 2018-04-12 20:13:16 +02:00
Alex Beregszaszi 7453ff0f3a Merge pull request #3873 from ethereum/returnVarStorage
Fix internal compiler error when parsing ``var`` declaration without …
2018-04-12 16:35:46 +01:00
Daniel Kirchner db40bd46af Add additional test for `var` for storage variables. 2018-04-12 16:46:35 +02:00
chriseth 75b8828666 Allow struct encoding with new encoder. 2018-04-12 16:37:16 +02:00
Daniel Kirchner 6862f22943 Fix internal compiler error when parsing `var` declaration without identifier. 2018-04-12 14:57:14 +02:00
chriseth b25598126e Update documentation and minor changes. 2018-04-12 13:09:38 +02:00
chriseth 4faa839813 Use error signature for revert data. 2018-04-12 13:09:38 +02:00
chriseth 338a875134 Update expectation. 2018-04-12 13:09:38 +02:00
chriseth e133b1a0cd Adjust expectations in case of homestead VM. 2018-04-12 13:09:38 +02:00
chriseth fcb7a27216 Only forward returndata if EVM version supports it. 2018-04-12 13:09:38 +02:00
chriseth 42c4c78390 Adjust tests. 2018-04-12 13:09:38 +02:00
chriseth 167ee2fcbb Update source location tests. 2018-04-12 13:09:38 +02:00
chriseth 43b1dd758b Changelog entry. 2018-04-12 13:09:38 +02:00
chriseth 344a388d44 Update documentation. 2018-04-12 13:09:38 +02:00
chriseth aa715f8759 Tests about error bubbling for create and transfer. 2018-04-12 13:09:38 +02:00
chriseth 7a9ee69e98 Bubble up error messages. 2018-04-12 13:09:38 +02:00
chriseth ae1d040285 Allow error string for `require`. 2018-04-12 13:09:37 +02:00
chriseth 3da16b3e8a Documentation for revert with reason string. 2018-04-12 13:09:37 +02:00
chriseth a06249c984 Tests for revert with reason string. 2018-04-12 13:09:37 +02:00
chriseth 012ab37fe3 Code generator for revert with reason string. 2018-04-12 13:09:37 +02:00
chriseth 8ab7dc036a Register overload for `revert()` that can receive a reason string. 2018-04-12 13:09:37 +02:00
chriseth f00bb43593 Allow function overloads involving MagicVariableDeclarations. 2018-04-12 13:09:37 +02:00
chriseth 17fc0f54b5 Use FunctionTypePointer (adds `const`). 2018-04-12 13:09:37 +02:00
chriseth c3dc67d0e0 Merge pull request #3848 from ethereum/constantDivisionByZero
Error on invalid arithmetic with constant expressions.
2018-04-12 11:49:08 +02:00
Daniel Kirchner d42476e241 Add test to check ConstantEvaluator for pure non-rational functions. 2018-04-12 11:33:54 +02:00
chriseth 7343c40283 Check partial function parameters if rest is arbitrary. 2018-04-12 00:10:25 +02:00
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
chriseth ea445b9d37 Merge pull request #3485 from ethereum/js-tests-node8
Require node 8 for Javascript tests
2018-04-11 23:41:28 +02:00
Daniel Kirchner 932915633b Add tests for literal operations as well. 2018-04-11 23:20:40 +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
Daniel Kirchner daa69df447 Error on invalid arithmetic with constant expressions. 2018-04-11 21:17:10 +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