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
chriseth
77b9fdcfbc
Fix type checks for storage variable initializer.
10 years ago
Lefteris Karapetsas
1681fbd885
getInheritableMembers() does not look at BaseContracts
- Also adding tests for improper accessing members of other contracts.
10 years ago
Lefteris Karapetsas
b1dcc2a77f
VisibleInDerivedContracts() is now virtual()
- Plus an extra test for internal visibility in a base class variable
10 years ago
Lefteris Karapetsas
f2fdeb3599
Add structs to inheritable members
10 years ago
Lefteris Karapetsas
6d48abddd3
Adding test for base class statevar accessors
10 years ago
Christian
9252c02a63
Type checks for array assignment.
10 years ago
Christian
fba4484151
Replaced "inheritable" by "internal".
10 years ago
Christian
30bd6f271f
Parsing of array types and basic implementation.
10 years ago
Gav Wood
2c6b18f01b
Add EVMJIT.
10 years ago