Lefteris Karapetsas
5be5fc55a0
Adding forgotten virtual specifier to EnumValue getType()
10 years ago
Lefteris Karapetsas
86caafd9e9
Add "this" contract's ctor to provided ctors set
- Also properly naming the 2 sets in checkAbstractConstructors() function
10 years ago
Lefteris Karapetsas
3a2d903252
Fixing new abstract contract error location reporting
10 years ago
Lefteris Karapetsas
c227951856
size()!=0 -> !empty()
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
1df385a63d
Fix for signed integers in storage.
10 years ago
chriseth
3bc78361d6
Bugfixes concerning variable declarations.
Fixes #1637
10 years ago
chriseth
a052d2f754
Line break.
10 years ago
chriseth
0bec8d9fcd
Some cleanup concerning byte arrays.
10 years ago
chriseth
0b36ca86d7
Fixed function overloads.
Added tests, disallowed non-calling usage of non-unique function
references.
10 years ago
Liana Husikyan
2cf5fdcadf
fixes
added more tests
10 years ago
Liana Husikyan
46eb3f366b
added implementation to append code for State variable accessor
fixed tests
10 years ago
Liana Husikyan
518daee546
some more tests
10 years ago
Liana Husikyan
561e461ded
added createing FunctionType from ArrayType VariableDeclaration
added test
10 years ago
chriseth
cc5c8f2678
SHA3 optimizations.
10 years ago
chriseth
b5e81a46ca
Retain more gas for the case that the called contract is not yet created.
10 years ago
Liana Husikyan
065d9a9e68
VariableDeclaration::checkTypeRequirements() refactoring
10 years ago
Liana Husikyan
ab0b92242f
Update Types.cpp
10 years ago
Liana Husikyan
c5df9e205b
Update AST.cpp
10 years ago
Liana Husikyan
f4ea6b8e8d
Update Types.h
10 years ago
Liana Husikyan
4352423fea
miner changes in the implementation of the externalTypes function of FunctionType.
better error messages for exeptions
style fixes after review
10 years ago
Liana Husikyan
4173a71846
changed checking for external type in VariableDeclaration::checkTypeRequirements()
changed error msg
10 years ago
Liana Husikyan
0e247e0282
style fixes
10 years ago
chriseth
ae6bae4a6c
Refactor: Pull out array index access.
10 years ago
Lefteris Karapetsas
29669c16a2
Fix some styling issues and remove comments
10 years ago
Lefteris Karapetsas
04d0415e52
Detect if non-existant parameter is documented with natspec
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
Lefteris Karapetsas
4e234b30ed
Moving contract fullyImplemented check to TypeRequirements
10 years ago
Liana Husikyan
8b14b4f4d1
two more tests
style fixes
10 years ago
Gav Wood
d71bec193f
Clean up some code redundancy.
Merge branch 'develop' of github.com:ethereum/cpp-ethereum into develop
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
Liana Husikyan
44c7da4262
added check for events and stat variables
10 years ago
Liana Husikyan
1d15c09e5f
- added externalType to BooleanType.
- fixed the error message
10 years ago
Liana Husikyan
a7eccfaa97
added check for valid externalType to checkTypeRequirements for function
10 years ago
Liana Husikyan
3d18c02f36
added externalType for ArrayType
10 years ago
Liana Husikyan
42177bc187
added getABIType() to types
10 years ago
Lefteris Karapetsas
fdd2959fff
Adding some more reserved keywords
10 years ago
Lefteris Karapetsas
d12f6540d1
Adding keywords for future use section in Token.h
10 years ago
Lefteris Karapetsas
a00c76944e
Removing string as a token.
- The string keyword is reserved for future use but should not be a
token in the code since it can cause trigger internal compiler
assertions.
- fixes #1384
10 years ago
chriseth
d2077b8962
Byte size checked for zero; coding style.
10 years ago
chriseth
79fb35fd69
Exception-throwing assert.
10 years ago
Lefteris Karapetsas
7eb9aa3466
Explicit conversion between bytes and int of any size
- Allowing aforementioned conversion and adding tests for it
10 years ago
chriseth
523ce4d178
Disallowed special case of bytes0 arrays.
10 years ago
chriseth
85505d45c0
Packing for arrays.
10 years ago
chriseth
2505b8ed90
Provide access to storage offsets via contract type.
10 years ago