Commit Graph

11290 Commits

Author SHA1 Message Date
Leo Arias
aae385031f Add a missing tests for yul inliner optimization
When the statement has two return values, the function is not inlinable.

When the function has one statement but it is not an assignment to the
return variable, the function is not inlinable.

l
2018-09-16 06:38:08 +00:00
liangdzou
f3cbdadec7 Do not set to ref for explicit conversion and add assertion for array
type conversion. Also, add some test cases for #4901 and #4948.
2018-09-14 08:42:40 +02:00
chriseth
5f4a2d2cad
Merge pull request #4849 from lastmjs/develop
Introduce static elementary types to use
2018-09-14 00:54:53 +02:00
Jordan Last
d0497aacc0 fixing rebase conflicts
add ElementaryTypes::BytesMemory and ElementaryTypes::StringMemory

fix rebase conflicts

fixing rebase conflicts

use make_shared instead of new

fix tabs and StateMutability parameter

create address and addressType functions, fix spaces in comment

fix typo and switch nonpayable to payable

fix spaces

fix comment again
2018-09-13 15:53:06 -06:00
chriseth
c221ab132d Review suggestions. 2018-09-13 23:43:15 +02:00
chriseth
1205de65dc Some updates about how to install solidity. 2018-09-13 23:43:15 +02:00
chriseth
5cf570e100
Merge pull request #4968 from ethereum/alethUpdateCompatible
Fix tests for newer versions of aleth.
2018-09-13 23:38:46 +02:00
chriseth
dc62e084cc
Merge pull request #4908 from ethereum/chriseth-patch-5
Blockchain basics part 2
2018-09-13 23:33:15 +02:00
chriseth
6de07e5c10 Blockchain basics part 2 2018-09-13 23:30:51 +02:00
chriseth
300ac9878f Merge branch 'release' into develop. 2018-09-13 22:54:57 +02:00
chriseth
8b089cc849
Merge pull request #4963 from ethereum/version-0.4.26
Set version to 0.4.26
2018-09-13 22:49:29 +02:00
chriseth
540150a8fb Some more info about imports and comments. 2018-09-13 18:41:08 +02:00
chriseth
59dbf8f108
Merge pull request #4957 from ethereum/develop_v0425
Merge to release for 0.4.25
2018-09-13 18:38:41 +02:00
chriseth
738906c235
Update solidity-in-depth.rst 2018-09-13 18:17:01 +02:00
chriseth
5272fe660c
Updates to examples. 2018-09-13 18:04:49 +02:00
Daniel Kirchner
e7daed68c1
Merge pull request #4911 from ethereum/addressPayable
Payable and non-payable address type.
2018-09-13 17:30:54 +02:00
Daniel Kirchner
3e55aa3fa2 Disable blockhash test for constantinople due to changes between aleth versions. 2018-09-13 17:18:42 +02:00
Daniel Kirchner
583b87bb3d Use "pending", not "latest" during `eth_call in sendMessage`. 2018-09-13 16:48:51 +02:00
chriseth
76812ed567
Merge pull request #4965 from ethereum/updateChangelog
Update changelog
2018-09-13 16:42:39 +02:00
chriseth
6ed88d1bfe Update changelog. 2018-09-13 16:34:22 +02:00
chriseth
5aa5fa78f3
Merge pull request #4906 from ethereum/chriseth-patch-3
Second part of coin example.
2018-09-13 16:04:00 +02:00
chriseth
8e924fd644 Second part of coin example. 2018-09-13 15:52:43 +02:00
Daniel Kirchner
ae35a58124 Add `stateMutability field to JSON AST for address` types. 2018-09-13 15:15:49 +02:00
Daniel Kirchner
12aaca1645 Add payable and non-payable state mutability to AddressType. 2018-09-13 15:15:49 +02:00
Alex Beregszaszi
a0e8d3ca6e Set version to 0.4.26
To avoid conflict with 0.4.25 release.
2018-09-13 14:03:20 +01:00
chriseth
15c8c0d2cf
Merge pull request #4941 from liangdzou/properly_truncate_referenced_src
Properly truncate referenced src
2018-09-13 09:43:47 +02:00
liangdzou
558a4ac49c give more information (at most 35 chars before and after) for too long lines
add tests for giving more informations for too long lines

add edge tests for giving more informations for too long lines

avoid printing out tailing white space

update test case after avoiding printing out trailing whitespace

update test case for removing the pre-release warning from reference

refactor the code to if-else flavor

rename folder to cmdlineErrorReports under test

rename folder to cmdlineErrorReports under test

ignore whitespace for reference files

avoiding to modify the file stderr_path by call sed without -i option

print ' ...' instead of ' ... ' at the end of a line
2018-09-13 09:55:54 +08:00
chriseth
753a94fdae
Merge pull request #4955 from ethereum/prepare_0425
Set release date of 0.4.25.
2018-09-12 21:07:27 +02:00
chriseth
eb1fbaaac8
Merge pull request #4956 from ethereum/backport_json_build_fix
Backport json build fixes
2018-09-12 20:01:07 +02:00
Daniel Kirchner
84d9245076 Rename JSONCPP_EXTRA_FLAGS to JSONCPP_CXX_FLAGS, add EMSCRIPTEN workaround and remove obsolete MSVC workaround. 2018-09-12 18:57:14 +02:00
Guido Vranken
d2d9162bb9 Propagate original CMAKE_CXX_FLAGS to jsoncpp compilation 2018-09-12 18:57:02 +02:00
Christian Parpart
72b9ad6837 Visual Studio 2017 build-time (linking) fix and improvements 2018-09-12 18:56:48 +02:00
mingchuan
1a5f90954a Fix cmake when custom CMAKE_INSTALL_LIBDIR is given
According to cmake documents, we cannot assume CMAKE_INSTALL_LIBDIR is a
relative path. This commit fixes the "no rule to make libjsoncpp.a"
error by passing -DCMAKE_INSTALL_LIBDIR=lib to jsoncpp external project.
2018-09-12 18:56:22 +02:00
Paweł Bylica
73973d2448 CMake: Fix libdir for jsoncpp external project in special case
When building on Debian/Ubuntu with install prefix /usr (e.g. in PPA builds) the CMAKE_INSTALL_LIBDIR is resolved to lib/x86_64-linux-gnu. For jsoncpp external project this is never the case because the install prefix is not /usr. Remove multiarch part from libdir if there.
2018-09-12 18:55:36 +02:00
chriseth
8c56a5912b Set relase date of 0.4.25. 2018-09-12 18:38:16 +02:00
chriseth
9214c7c34f
Merge pull request #4953 from ethereum/addressPayableTests
Update test suite to use address payable.
2018-09-12 17:39:16 +02:00
chriseth
7cda8456d8
Merge pull request #4939 from ethereum/nested_array_library_changelogv0425
[backport] Buglist entry for returning nested arrays.
2018-09-12 16:24:13 +02:00
Daniel Kirchner
879251a78b Update test suite to use address payable. 2018-09-12 16:21:43 +02:00
chriseth
1994b51ef3
Merge pull request #4926 from ethereum/addressPayableParser
Accept ``address payable`` during parsing.
2018-09-11 15:29:53 +02:00
Leonardo Alt
75e38be050 Bugfix entry regarding nested arrays returned by library functions 2018-09-11 15:06:28 +02:00
Daniel Kirchner
1ce3581a52 Accept `address payable` during parsing. 2018-09-11 14:52:23 +02:00
chriseth
e913b753b9
Merge pull request #4927 from ethereum/struct_event_jsonpath_0425
[backport] Buglist check script supports json paths
2018-09-11 12:06:31 +02:00
chriseth
7d5c139816
Merge pull request #4935 from elopio/patch-5
On a yul switch, at least one case is required when there is no default statement
2018-09-11 09:23:26 +02:00
Leo Arias
d33a99799d On a yul switch, at least one case is required when there is no default statement 2018-09-11 01:27:47 +00:00
chriseth
d66e956ac2
Merge pull request #4940 from elopio/patch-6
Clarify a little the function hoister optimization
2018-09-11 03:01:15 +02:00
Leo Arias
0b30dfc7d0
Clarify a little the function hoister optimization 2018-09-10 13:06:09 -06:00
Leonardo Alt
69320472af Buglist check script supports json paths 2018-09-10 16:45:56 +02:00
chriseth
6402b83826
Merge pull request #4938 from ethereum/expCleanup0425
[backport] Exp cleanup
2018-09-10 16:33:47 +02:00
chriseth
3b7be594cf Update bug description, add regex and tests. 2018-09-10 14:38:48 +02:00
chriseth
be713ed117 Changelog entry and bug list. 2018-09-10 14:37:58 +02:00