chriseth
8221a3c4cd
Allow structs containing mappings in memory.
10 years ago
chriseth
6e7bed616c
Check whether a literal is a valid literal before using it.
Fixes #2078
10 years ago
chriseth
9c3983d1c6
Flexible string literals, convertible to bytesX, bytes and string.
10 years ago
chriseth
905da13c34
Struct constructors.
10 years ago
chriseth
9c483859d1
Fixed checking of abstract functions.
Fixes #2264
10 years ago
chriseth
edd52f0553
Memory arrays cannot be resized.
10 years ago
chriseth
f95baf2cb9
Delete for memory objects.
10 years ago
chriseth
9e36e8c4e1
Decoding for constructor.
10 years ago
chriseth
c7b257acde
Fix and test for not really recursive structs.
Fixes #2223 .
10 years ago
chriseth
7d09d87d16
Distinction between storage pointer and storage ref and type checking for conversion between storage and memory.
10 years ago
Liana Husikyan
808c7ea26d
cleaned up the tests
10 years ago
chriseth
e66a5ca0b5
Use dynamic memory for argument encoding.
10 years ago
Liana Husikyan
2d732e8923
removed byte0 keyword
10 years ago
chriseth
ac79514e63
Ability to specify the storage location of a reference type.
10 years ago
Liana Husikyan
ee2b5e7cb4
fixed assigning negative number to unsigned
10 years ago
Liana Husikyan
9da464ee05
- style fixes
- added test for uint8 = -1 which doesn't fail; todo: fix that
10 years ago
Liana Husikyan
4757651b64
- conversion of positive literals to signed int
- tests
10 years ago
chriseth
b6f9d51cd6
Re-introduce string type.
10 years ago
Gav Wood
05ea9941c9
Move non-cryptopp dependent stuff into devcore.
10 years ago
Liana Husikyan
6cc7bb915a
updated unit test
10 years ago
Liana Husikyan
ef6c158805
bug in abi. fixed external type for return parameters
10 years ago
Liana Husikyan
71c2c7da45
fixed the test
10 years ago
Liana Husikyan
260125a5d3
added test
10 years ago
chriseth
69db1c7181
Removed (and added) some #ifs (but removed more than I added).
10 years ago
CJentzsch
338e5bd088
Restructure test folders
10 years ago
Lefteris Karapetsas
2279e40274
Check all constructors in inheritance chain get args
- Also add a missing override in a function of EnumValue
10 years ago
Lefteris Karapetsas
45117f53b0
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
10 years ago
chriseth
3bc78361d6
Bugfixes concerning variable declarations.
Fixes #1637
10 years ago
chriseth
0b36ca86d7
Fixed function overloads.
Added tests, disallowed non-calling usage of non-unique function
references.
10 years ago
Gav Wood
9fb30b141e
Allow Solidity build to be disabled.
10 years ago
Liana Husikyan
4173a71846
changed checking for external type in VariableDeclaration::checkTypeRequirements()
changed error msg
10 years ago
Lefteris Karapetsas
29669c16a2
Fix some styling issues and remove comments
10 years ago
Lefteris Karapetsas
dfcaf8a414
Abstract contract and inheritance
- Checking the linearized base contracts for abstract functions and
handle their existence appropriately
- If a contract is abstract it can't be created with new
- An abstract contract is not compiled (no backend code is generated)
- Of course tests
10 years ago
Liana Husikyan
dd15c53ae4
added externalTypes function to functionType
removed flag for externalSigniture
10 years ago
Liana Husikyan
8b14b4f4d1
two more tests
style fixes
10 years ago
Lefteris Karapetsas
742002b05a
Parsing of not fully implemented functions
- Adding the possibility of omitting a function body by simply ending a
function definition with a semicolon
- Such a function is marked as not fully implemented and any contract
that contains such a function is considered a not fully implemented contract
10 years ago
Liana Husikyan
f3e8d2b7e9
tests for external types
10 years ago
Liana Husikyan
ba8d0f615c
renamed externalTypes to externalSignature
10 years ago
Liana Husikyan
0ca313ec85
renamed getCanonicalSignature
added externalTypes instead of types for interface functions
added simple test
todo
testing
10 years ago
chriseth
523ce4d178
Disallowed special case of bytes0 arrays.
10 years ago
Liana Husikyan
7359f68b9f
- 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
10 years ago
Liana Husikyan
304256b546
- 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
10 years ago
Liana Husikyan
6f11b6a73f
added parsing for constant variables
10 years ago
Lefteris Karapetsas
5c042e2e59
Small FixedBytes type fixes
- Integer Constant is explicitly convertible to FixedBytes, so using
that in the tests
10 years ago
Lefteris Karapetsas
0cd3b15373
byte is now an alias for byte1
10 years ago
Lefteris Karapetsas
bb205103c4
Most EndToEndTests are now compliant with the Bytes renaming
10 years ago
Lefteris Karapetsas
9d7ebacabc
Bytes Tokens properly named and NameAndTypeResolution tests work
10 years ago
Lu Guanqun
29ec4453b5
add two overloaded function test cases
10 years ago
Lu Guanqun
774d677aac
add test cases for functions in derived overload functions in base
10 years ago
Lefteris Karapetsas
f94648fbb2
NameAndtypeResolution tests use ETH_TEST macros
10 years ago