Commit Graph

151 Commits

Author SHA1 Message Date
chriseth
6b08b99b5e Merge remote-tracking branch 'ethereum/develop' into sol_overloadingFunctions 2015-04-17 16:24:23 +02:00
chriseth
d0470999b2 Tests for signed integers in storage. 2015-04-17 13:25:28 +02:00
chriseth
6753e0a8e6 Merge remote-tracking branch 'ethereum/develop' into sol_overloadingFunctions
Conflicts:
	libsolidity/Types.cpp
2015-04-15 17:43:23 +02:00
chriseth
c19d10321a Fixed function overloads.
Added tests, disallowed non-calling usage of non-unique function
references.
2015-04-15 17:40:50 +02:00
Gav Wood
ec8d4cd081 Fix solidity tests. 2015-04-08 23:09:06 +02:00
Gav Wood
8665d76f52 Merge pull request #1546 from chriseth/sol_assumeContractNotCreated
Retain more gas for the case that the called contract is not yet created
2015-04-08 22:45:13 +02:00
Liana Husikyan
377e543558 fixes
added more tests
2015-04-08 15:56:36 +02:00
Liana Husikyan
5c0fe54f3f added < uint256 uinttype to test 2015-04-08 15:56:36 +02:00
Liana Husikyan
4d4a999db2 added implementation to append code for State variable accessor
fixed tests
2015-04-08 15:56:35 +02:00
Liana Husikyan
a33564fbcc some more tests 2015-04-08 15:56:35 +02:00
Liana Husikyan
32ae2ea75c added createing FunctionType from ArrayType VariableDeclaration
added test
2015-04-08 15:56:35 +02:00
chriseth
367d0367ee Merge remote-tracking branch 'ethereum/develop' into sol_overloadingFunctions 2015-04-07 17:08:49 +02:00
chriseth
c01c07e311 Retain more gas for the case that the called contract is not yet created. 2015-04-07 14:03:57 +02:00
Gav Wood
ef912bdb04 Disable SHA256/RIPEMD tests for now. 2015-04-06 22:33:32 +02:00
Gav Wood
966407f285 Allow Solidity build to be disabled. 2015-04-05 17:46:12 +02:00
chriseth
ff06ea3aaf Merge pull request #1341 from chriseth/sol_packedStorage
Packed storage for arrays.
2015-03-20 12:54:36 +01:00
Lefteris Karapetsas
b278b62fb4 Reorganizing conversion EndToEndTests
- Adding/Renaming tests so that we have one for each of the following:
    * FixedBytes to Uint all sizes
    * FixedBytes to FixedBytes all sizes
    * Uint to FixedBytes all sizes

- Grouped them together location-wise to make more sense
2015-03-18 21:14:45 +01:00
Lefteris Karapetsas
cd9785d2ff Explicit conversion between bytes and int of any size
- Allowing aforementioned conversion and adding tests for it
2015-03-18 10:57:24 +01:00
chriseth
0816a59b7e Disallowed special case of bytes0 arrays. 2015-03-17 18:34:57 +01:00
chriseth
a05b307f4e Packing for arrays. 2015-03-17 18:13:28 +01:00
Liana Husikyan
8e61b06b2a added test to check anonymous events with user specified topics
added initial value for m_anonymous of EventDefinition
2015-03-17 14:25:23 +01:00
Liana Husikyan
26b2b4d9a6 changed the position of 'anonymous' keyword: event <name>() anonymous.
- style changes
2015-03-17 14:25:13 +01:00
Liana Husikyan
5dc9a8df92 Added anonymous flag to event.
added test
2015-03-17 10:51:03 +01:00
Liana Husikyan
eccf7867fa added test for anonymous event 2015-03-17 10:51:03 +01:00
Gav Wood
323f466343 Merge pull request #1333 from arkpar/eth_buildc
Support for building with clang and GNU gold linker on linux
2015-03-17 09:24:33 +01:00
arkpar
b16533c0f0 supported building with clang and GNU gold linker on linux 2015-03-16 22:31:31 +01:00
chriseth
1d44a8999e Fetch and store packed values. 2015-03-16 18:07:14 +01:00
chriseth
10be65f269 Enlarge storage references to two stack slots. 2015-03-16 18:07:14 +01:00
chriseth
e26f2dcaae Merge pull request #1325 from LefterisJP/sol_MsgSig
Adding msg.sig Solidity Magic type
2015-03-16 17:30:18 +01:00
Lefteris Karapetsas
67a9ec3bdb Additional test for msg.sig 2015-03-16 16:42:56 +01:00
Lefteris Karapetsas
55fed7d1c4 Adding msg.sig Solidity Magic type
msg.sig will return a bytes4 with the function signature located in CALLDATALOAD
2015-03-16 12:59:56 +01:00
Liana Husikyan
1d2e579eff - added more tests to check constant specifier implementation
- deny use of const for local variables
- deny unitialized const variables
- only int, fixed strings, and enums can be declaired as const
2015-03-16 10:46:46 +01:00
Liana Husikyan
8e6b2c10c3 - added isPartOfExternalInterface to Declaration
- changed position for the constant specifier. now it goes after type: <type> <constant> <name> = <value>
- removed tests for constant functions, checkings for constant function doesn't belong to this story
2015-03-16 10:46:46 +01:00
Liana Husikyan
2ca23b2247 added parsing for constant variables 2015-03-16 10:46:46 +01:00
chriseth
a6f328a613 Fix gas for builtin.
Fixes #1300
2015-03-13 17:31:56 +01:00
Lefteris Karapetsas
1bb7f3cbc3 Small FixedBytes type fixes
- Integer Constant is explicitly convertible to FixedBytes, so using
  that in the tests
2015-03-12 17:31:39 +01:00
Lefteris Karapetsas
3d0f4b0f22 Style fixes and some additional hash to bytes32 renaming 2015-03-12 12:53:01 +01:00
Lefteris Karapetsas
0b411d98e9 Removing uncecessary intermediate int conversion in log tests 2015-03-12 12:53:00 +01:00
Lefteris Karapetsas
6e9d0d7345 Fixing byte array index access code generation 2015-03-12 12:53:00 +01:00
Lefteris Karapetsas
125a1bb670 Conversion changes after renaming Hash/String to Bytes.
- Almost all end to end tests pass. Still needs a little bit of work
2015-03-12 12:53:00 +01:00
Lefteris Karapetsas
5abf18c27f Most EndToEndTests are now compliant with the Bytes renaming 2015-03-12 12:53:00 +01:00
chriseth
0fcd2212d4 Global variable "now" (alias for block.timestamp). 2015-03-09 19:22:43 +01:00
Lu Guanqun
f5b1fec699 add another var x = f; overloaded function test case 2015-03-08 09:50:54 -05:00
Lu Guanqun
1da211920e add two overloaded function test cases 2015-03-08 09:48:53 -05:00
Lu Guanqun
b87c5547a5 add test cases for functions in derived overload functions in base 2015-03-08 09:48:53 -05:00
Lu Guanqun
114776dfba add end to end test cases related to overloaded functions 2015-03-08 09:48:53 -05:00
chriseth
2650703ece Typo 2015-03-06 15:40:02 +01:00
chriseth
e6c778e740 Fix for arrays containing mappings. 2015-03-06 13:17:52 +01:00
chriseth
7639bfe7e5 Copying between calldata and storage. 2015-03-06 13:17:52 +01:00
Christian
2f91e1f9b5 Index access for calldata arrays. 2015-03-05 13:19:59 +01:00