Commit Graph

210 Commits

Author SHA1 Message Date
Liana Husikyan
d639c225f2 corrected the calculation of gas for send 2015-06-04 11:47:19 +02:00
chriseth
408fd7ab59 Merge pull request #1975 from LianaHus/sol_EVMExceptions
"error jump" instead of STOP instraction in case of exception
2015-06-01 17:45:55 +02:00
Liana Husikyan
af4650beb2 fixed CALL case. added exception 2015-06-01 16:39:09 +02:00
Liana Husikyan
9af94ca0dc style fixes 2015-06-01 13:06:12 +02:00
Liana Husikyan
ccb194fd39 removed exception when function is not found 2015-06-01 13:06:12 +02:00
Liana Husikyan
e72a014cf4 special handle of send 2015-06-01 13:06:12 +02:00
Liana Husikyan
ce6126094a one more test to test the call of non-existed function
Conflicts:
	test/libsolidity/SolidityEndToEndTest.cpp
2015-06-01 13:06:12 +02:00
Liana Husikyan
16a2ffde80 style fixes 2015-06-01 13:06:12 +02:00
Liana Husikyan
0f323b1ef4 fixed mistake because of conflict resolving 2015-06-01 13:06:12 +02:00
Liana Husikyan
2f50eb0028 added error jump instead of STOP instraction in case of exception 2015-06-01 13:06:12 +02:00
chriseth
6949ce97e4 Re-introduce string type. 2015-05-28 16:20:50 +02:00
Gav Wood
70d9eb3f1d Move non-cryptopp dependent stuff into devcore. 2015-05-19 19:51:38 +02:00
chriseth
dba5ffc280 Bare callcode for addresses and contracts. 2015-05-15 18:02:09 +02:00
Liana Husikyan
1087d34a66 saved returnParameterNames in FunctionType constructor 2015-04-27 13:08:32 +02:00
Liana Husikyan
88536f90e8 changed the test so constructor will have input parameters 2015-04-27 13:08:32 +02:00
chriseth
a3820fa046 Fix regarding memory overwrite during sha3 computation. 2015-04-22 11:43:50 +02:00
chriseth
a6d08950c6 bytes parameters for events and sha3. 2015-04-22 11:43:49 +02:00
Gav Wood
1f44d93e05 Merge pull request #1685 from chriseth/sol_fix_ripemd_alignment
Fixed byte alignment for return type of ripemd160 built-in contract.
2015-04-21 17:33:02 +02:00
chriseth
e3bd21f4dd Fixed byte alignment for return type of ripemd160 built-in contract. 2015-04-21 13:03:26 +02:00
chriseth
c7b428fdb1 Merge remote-tracking branch 'ethereum/develop' into sol_overloadingFunctions
Conflicts:
	libsolidity/Types.cpp
2015-04-15 17:43:23 +02:00
chriseth
0c69d5fdcd Fixed function overloads.
Added tests, disallowed non-calling usage of non-unique function
references.
2015-04-15 17:40:50 +02:00
Gav Wood
e1b20fb3a1 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
6f38bfeb6c fixes
added more tests
2015-04-08 15:56:36 +02:00
Liana Husikyan
fb1cf35f3b added implementation to append code for State variable accessor
fixed tests
2015-04-08 15:56:35 +02:00
Liana Husikyan
df3ce3ad8f some more tests 2015-04-08 15:56:35 +02:00
Liana Husikyan
7eec25b6eb added createing FunctionType from ArrayType VariableDeclaration
added test
2015-04-08 15:56:35 +02:00
chriseth
158795e48f Merge remote-tracking branch 'ethereum/develop' into sol_overloadingFunctions 2015-04-07 17:08:49 +02:00
chriseth
da47c88411 Retain more gas for the case that the called contract is not yet created. 2015-04-07 14:03:57 +02:00
chriseth
d0ede6fafd Refactor: Pull out array index access. 2015-03-30 19:32:14 +02:00
Liana Husikyan
a3d829d074 added externalTypes function to functionType
removed flag for externalSigniture
2015-03-27 13:28:32 +01:00
Liana Husikyan
8f747aab0f tests for external types 2015-03-25 14:20:13 +01:00
Liana Husikyan
9986b072ad renamed externalTypes to externalSignature 2015-03-25 13:59:46 +01:00
Liana Husikyan
701b34fbeb renamed getCanonicalSignature
added externalTypes instead of types for interface functions
added simple test

todo
testing
2015-03-25 13:59:46 +01:00
chriseth
dba9dd1169 Byte size checked for zero; coding style. 2015-03-19 18:15:16 +01:00
chriseth
2cde4f3404 Packing for arrays. 2015-03-17 18:13:28 +01:00
Liana Husikyan
46cbb5525c added anonymous to ABI 2015-03-17 14:25:23 +01:00
Liana Husikyan
5a5577f5a5 changed the position of 'anonymous' keyword: event <name>() anonymous.
- style changes
2015-03-17 14:25:13 +01:00
Liana Husikyan
2986ecbd75 Added anonymous flag to event.
added test
2015-03-17 10:51:03 +01:00
chriseth
02595abf6a Fetch and store packed values. 2015-03-16 18:07:14 +01:00
chriseth
fff3f98f58 Enlarge storage references to two stack slots. 2015-03-16 18:07:14 +01:00
chriseth
c34e1da6db Merge pull request #1325 from LefterisJP/sol_MsgSig
Adding msg.sig Solidity Magic type
2015-03-16 17:30:18 +01:00
Lefteris Karapetsas
bb5364dd66 Additional test for msg.sig 2015-03-16 16:42:56 +01:00
Lefteris Karapetsas
d7ffba1504 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
7d6357ae53 - 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
67cd3a7180 added parsing for constant variables 2015-03-16 10:46:46 +01:00
chriseth
a16677dcfb Fix gas for builtin.
Fixes #1300
2015-03-13 17:31:56 +01:00
Lefteris Karapetsas
cd3e8c1756 Fixing byte array index access code generation 2015-03-12 12:53:00 +01:00
Lefteris Karapetsas
b2fadf6b93 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
73ce24ae75 Most EndToEndTests are now compliant with the Bytes renaming 2015-03-12 12:53:00 +01:00
Lefteris Karapetsas
7d7f37bd5e Replacing StaticStringType with FixedBytesType 2015-03-12 12:53:00 +01:00