Commit Graph

792 Commits

Author SHA1 Message Date
Liana Husikyan
8b5fa857d7 created secondarySoureLocation error type
added additional information to error msgs
2015-05-04 14:47:38 +02:00
chriseth
ef26d96111 Fix for broken continue in for loop.
Fixes #1789.
2015-05-04 10:54:50 +02:00
chriseth
8a1758e605 Utility class to find a suitable AST node for a given location. 2015-04-29 16:24:26 +02:00
Gav Wood
a508d29489 Merge pull request #1761 from chriseth/sol_fix_deleteBytes
Fix for deleting byte array elements.
2015-04-28 12:39:03 +02:00
chriseth
c1983d1bef Fix for deleting byte array elements.
Fixes #1759.
2015-04-28 11:31:40 +02:00
chriseth
eddf443fd2 Provide a way to override default visitor function in a generic way. 2015-04-27 18:57:16 +02:00
chriseth
9aa03ddd89 Removed visit functions for abstract AST nodes. 2015-04-27 18:57:13 +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
Liana Husikyan
648ce85256 removed an unnecessary function 2015-04-27 13:08:32 +02:00
Liana Husikyan
f0cac2f6a9 changed the implementation 2015-04-27 13:08:32 +02:00
Liana Husikyan
4cbff655ff style fix 2015-04-27 13:08:32 +02:00
Liana Husikyan
2d62c482fd fixed the output of the test 2015-04-27 13:08:32 +02:00
chriseth
fcd3f44fd9 Use BUILD_SHARED_LIB 2015-04-24 14:50:14 +02:00
chriseth
ca97dcbd5b Use non-implemented functions for solidity interface output. 2015-04-23 15:00:44 +02:00
chriseth
ff39a1d241 Merge pull request #1708 from chriseth/sol_fix_libraries
Fixed use of libraries.
2015-04-22 14:33:38 +02:00
chriseth
c41eb14000 Merge pull request #1697 from chriseth/sol_bytesInEvents
bytes parameters for events and sha3.
2015-04-22 14:32:05 +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
chriseth
88239460bb Fixed use of libraries. 2015-04-22 11:34:25 +02:00
Christian
83cc8dfe00 JSON compiler. 2015-04-22 11:33:25 +02:00
chriseth
a44bcb6909 Fix for declarations. 2015-04-21 19:04:08 +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
Gav Wood
5f6a396765 Merge pull request #1699 from chriseth/sol_fix_contractTypesAsArguments
Fix for Contract and Enum types as external function arguments.
2015-04-21 17:32:01 +02:00
chriseth
8125f93b12 Fix for Contract and Enum types as external function arguments. 2015-04-21 15:50:37 +02:00
chriseth
e3bd21f4dd Fixed byte alignment for return type of ripemd160 built-in contract. 2015-04-21 13:03:26 +02:00
chriseth
8cd5eed17d Styling. 2015-04-20 15:29:04 +02:00
chriseth
7a467bbf07 Merge remote-tracking branch 'ethereum/develop' into sol_overloadingFunctions
Conflicts:
	libsolidity/AST.cpp
	libsolidity/AST.h
2015-04-20 14:55:58 +02:00
Liana Husikyan
e4808305a1 removed unused parameter from streamAsmJson 2015-04-17 17:45:25 +02:00
Liana Husikyan
1cfa964990 style fixes 2015-04-17 17:41:50 +02:00
Liana Husikyan
f829dad7e3 added asm-json flag to cl compiler
Conflicts:
	libsolidity/CompilerStack.cpp
2015-04-17 17:41:41 +02:00
chriseth
c9812f7269 Merge pull request #1501 from LefterisJP/abstract_contract_contructors
Abstract contract contructors
2015-04-17 17:31:47 +02:00
chriseth
2d69b269e9 Merge remote-tracking branch 'ethereum/develop' into sol_overloadingFunctions 2015-04-17 16:24:23 +02:00
Lefteris Karapetsas
c558aa0656 Fixing detection of abstract contract 2015-04-17 16:17:21 +02:00
Lefteris Karapetsas
1a19d436db Adding forgotten virtual specifier to EnumValue getType() 2015-04-17 15:27:31 +02:00
Lefteris Karapetsas
eb84c3171a Add "this" contract's ctor to provided ctors set
- Also properly naming the 2 sets in checkAbstractConstructors() function
2015-04-17 15:27:31 +02:00
Lefteris Karapetsas
0c296cd809 Fixing new abstract contract error location reporting 2015-04-17 15:27:31 +02:00
Lefteris Karapetsas
52a442a100 size()!=0 -> !empty() 2015-04-17 15:27:31 +02:00
Lefteris Karapetsas
beba2705ba Check all constructors in inheritance chain get args
- Also add a missing override in a function of EnumValue
2015-04-17 15:27:31 +02:00
Lefteris Karapetsas
d997dc55d1 Allowing abstract contracts constructor to have no args
- If a constructor is part of an abstract contract we can omit its
  arguments

- IF a contract is abstract make sure to not create and/or request
  Assembly code about it since it's not compiled
2015-04-17 15:27:31 +02:00
chriseth
5622364a98 Fix for signed integers in storage. 2015-04-17 13:27:31 +02:00
chriseth
6e5de4832d Bugfixes concerning variable declarations.
Fixes #1637
2015-04-16 00:09:28 +02:00
chriseth
820239a73c Line break. 2015-04-15 18:06:41 +02:00
chriseth
5216a9bc67 Some cleanup concerning byte arrays. 2015-04-15 18:06:41 +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