Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make non-payable default for conversion to address. | chriseth | 2018-09-20 | 1 | -3/+1 |
| | |||||
* | Do not set to ref for explicit conversion and add assertion for array | liangdzou | 2018-09-14 | 1 | -2/+17 |
| | | | | type conversion. Also, add some test cases for #4901 and #4948. | ||||
* | fixing rebase conflicts | Jordan Last | 2018-09-14 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | add ElementaryTypes::BytesMemory and ElementaryTypes::StringMemory fix rebase conflicts fixing rebase conflicts use make_shared instead of new fix tabs and StateMutability parameter create address and addressType functions, fix spaces in comment fix typo and switch nonpayable to payable fix spaces fix comment again | ||||
* | Add payable and non-payable state mutability to AddressType. | Daniel Kirchner | 2018-09-13 | 3 | -17/+53 |
| | |||||
* | Accept ``address payable`` during parsing. | Daniel Kirchner | 2018-09-11 | 1 | -1/+14 |
| | |||||
* | Merge pull request #4872 from bakaoh/issue4716 | chriseth | 2018-09-06 | 1 | -4/+5 |
|\ | | | | | Crash when array index value is too large | ||||
| * | Fix #4716: Crash when array index value is too large | bakaoh | 2018-09-05 | 1 | -4/+5 |
| | | |||||
* | | Split IntegerType into IntegerType and AddressType. | Daniel Kirchner | 2018-09-05 | 2 | -3/+3 |
| | | |||||
* | | Merge pull request #4590 from ethereum/msgValueModifier | chriseth | 2018-09-05 | 5 | -65/+102 |
|\ \ | | | | | | | Warn if modifier uses msg.value in non-payable function | ||||
| * | | Turn warning into error. | chriseth | 2018-09-04 | 1 | -5/+7 |
| | | | |||||
| * | | Warns if modifier uses msg.value in non-payable function. | Erik Kundt | 2018-09-04 | 5 | -65/+100 |
| |/ | |||||
* | | Fix abi.decode returning single value. | chriseth | 2018-09-05 | 2 | -20/+20 |
| | | |||||
* | | Merge pull request #4888 from ↵ | chriseth | 2018-09-04 | 2 | -2/+25 |
|\ \ | | | | | | | | | | | | | ethereum/disallow_single_statement_vardecl_if_while_for Disallow single statement var decl in if/while/for without blocks | ||||
| * | | Review suggestions | Leonardo Alt | 2018-09-04 | 2 | -11/+11 |
| | | | |||||
| * | | Changed error message and added tests | Leonardo Alt | 2018-09-04 | 1 | -1/+1 |
| | | | |||||
| * | | Disallow single statement var decl in if/while/for without blocks | Leonardo Alt | 2018-09-04 | 2 | -2/+25 |
| |/ | |||||
* / | Rename Location::Default to Location::Unspecified. | Chase McDermott | 2018-08-18 | 2 | -5/+5 |
|/ | |||||
* | Dynamic type as mapping key returns error instead of assertion fail | Leonardo Alt | 2018-08-16 | 1 | -1/+15 |
| | |||||
* | Merge pull request #4822 from ethereum/addressStaticCall | chriseth | 2018-08-16 | 1 | -3/+9 |
|\ | | | | | Add ``staticcall`` to ``address``. | ||||
| * | Add ``staticcall`` to ``address``. | Daniel Kirchner | 2018-08-15 | 1 | -3/+9 |
| | | |||||
* | | Review suggestions | Leonardo Alt | 2018-08-15 | 1 | -3/+3 |
| | | |||||
* | | Disallow indexed reference types in events when using ABIEncoderV2 | Leonardo Alt | 2018-08-15 | 1 | -0/+10 |
|/ | |||||
* | Merge pull request #4390 from ethereum/abidecode | chriseth | 2018-08-15 | 3 | -5/+81 |
|\ | | | | | Add abi.decode | ||||
| * | Add abi.decode(bytes data, (...)) | chriseth | 2018-08-15 | 3 | -5/+81 |
| | | |||||
* | | Fixes #4718: High CPU usage when using large variable names | bakaoh | 2018-08-15 | 1 | -2/+5 |
|/ | |||||
* | Merge pull request #4738 from ethereum/dataloc_merged | chriseth | 2018-08-15 | 4 | -112/+102 |
|\ | | | | | Enforce data location. | ||||
| * | Refactor data location check. | Chase McDermott | 2018-08-15 | 4 | -112/+102 |
| | | |||||
* | | Merge pull request #4542 from aarlt/constructor_natspec | chriseth | 2018-08-15 | 2 | -6/+39 |
|\ \ | |/ |/| | Fix: natspec annotations on constructors | ||||
| * | Fix: natspec annotations on constructors | Alexander Arlt | 2018-08-09 | 2 | -6/+39 |
| | | | | | | | | - natspec annotations on constructore where ignored. | ||||
* | | Adds support for structs in interfaces. | Christian Parpart | 2018-08-14 | 2 | -4/+9 |
| | | | | | | | | Closes #4733. | ||||
* | | Merge pull request #4777 from ethereum/typeConversionMemory | chriseth | 2018-08-14 | 1 | -3/+6 |
|\ \ | | | | | | | Defaul data location for type conversions is memory. | ||||
| * | | Defaul data location for type conversions is memory. | chriseth | 2018-08-13 | 1 | -3/+6 |
| | | | |||||
* | | | Merge pull request #4798 from ethereum/mappingArgumentsAndReturns | chriseth | 2018-08-13 | 2 | -2/+8 |
|\ \ \ | | | | | | | | | Mapping arguments and returns | ||||
| * | | | Allow mappings of arrays as arguments and return values of internal functions. | Daniel Kirchner | 2018-08-13 | 1 | -4/+1 |
| | | | | |||||
| * | | | Consider mappings return values in control flow analysis. | Daniel Kirchner | 2018-08-13 | 1 | -1/+4 |
| | | | | |||||
| * | | | Allow mapping arguments and return values in all internal functions. | Daniel Kirchner | 2018-08-13 | 1 | -1/+0 |
| | | | | |||||
| * | | | Allow mapping arguments and return values in internal library functions. | Daniel Kirchner | 2018-08-13 | 1 | -1/+8 |
| |/ / | |||||
* / / | Disallow ambiguous conversions between number literals and bytesXX types. | Daniel Kirchner | 2018-08-13 | 1 | -16/+0 |
|/ / | |||||
* | | Fix data location of external reference parameters. | chriseth | 2018-08-09 | 1 | -1/+1 |
| | | |||||
* | | Rename FunctionKind SHA3 to KECCAK256 (as the instruction was renamed in ↵ | Alex Beregszaszi | 2018-08-09 | 2 | -5/+5 |
|/ | | | | libevmasm) | ||||
* | Merge pull request #4684 from ethereum/underscores_in_numeric_literals | chriseth | 2018-08-09 | 2 | -0/+43 |
|\ | | | | | [BREAKING] Underscores in numeric literals | ||||
| * | Cleanup & polish numbers-with-underscores parsing, also improving tests. | Christian Parpart | 2018-08-08 | 1 | -25/+24 |
| | | |||||
| * | Add stricter hex underscore rules | Balajiganapathi S | 2018-08-08 | 2 | -0/+44 |
| | | |||||
* | | Provide nicer error message when referencing overloaded references | Alex Beregszaszi | 2018-08-08 | 1 | -0/+3 |
| | | |||||
* | | Merge pull request #4740 from ethereum/enforceNumberOfReturnValues | chriseth | 2018-08-08 | 1 | -1/+5 |
|\ \ | | | | | | | Disallow empty return in function with return arguments. | ||||
| * | | Disallow empty return expressions in functions with non-empty return parameters. | Daniel Kirchner | 2018-08-08 | 1 | -1/+5 |
| |/ | |||||
* | | Merge pull request #4745 from ethereum/nameResolverNoEarlyExit | chriseth | 2018-08-08 | 1 | -3/+0 |
|\ \ | | | | | | | Do not stop after the first error in reference resolution. | ||||
| * | | Do not stop after the first error in reference resolution. | chriseth | 2018-08-08 | 1 | -3/+0 |
| |/ | |||||
* / | Remove remaining instances of ``fillRight`` left over from tuple wildcards ↵ | Daniel Kirchner | 2018-08-08 | 1 | -4/+7 |
|/ | | | | assignments. | ||||
* | Merge pull request #4731 from ethereum/interface-enum | chriseth | 2018-08-07 | 2 | -8/+0 |
|\ | | | | | Allow enums in interfaces | ||||
| * | Allow enums in interfaces | Alex Beregszaszi | 2018-08-07 | 2 | -8/+0 |
| | | |||||
* | | Merge pull request #4699 from ethereum/cleanup_VariableDeclaration | chriseth | 2018-08-07 | 1 | -105/+109 |
|\ \ | | | | | | | libsolidity: Remove dead code wrt. VariableDeclaration::canHaveAutoType | ||||
| * | | libsolidity: Remove dead code wrt. VariableDeclaration::canHaveAutoType() | Christian Parpart | 2018-08-07 | 1 | -105/+109 |
| | | | | | | | | | | | | Closes #4667 | ||||
* | | | More precise error message if using non-variables with _slot/_offset | Alex Beregszaszi | 2018-08-07 | 2 | -3/+7 |
| | | | |||||
* | | | Properly handle invalid references used together with _slot and _offset. | Alex Beregszaszi | 2018-08-07 | 1 | -0/+2 |
| |/ |/| | |||||
* | | Do not crash on using _slot and _offset suffixes on their own | Alex Beregszaszi | 2018-08-07 | 1 | -0/+5 |
|/ | |||||
* | Merge pull request #4689 from ethereum/cleanup-050-tests | chriseth | 2018-08-06 | 2 | -3/+0 |
|\ | | | | | Cleanup 0.5.0 test cases | ||||
| * | Remove unused 050 variable in ReferencesResolver | Alex Beregszaszi | 2018-08-06 | 2 | -3/+0 |
| | | |||||
* | | Merge pull request #4690 from ethereum/equalParameterTypes | Alex Beregszaszi | 2018-08-06 | 2 | -5/+5 |
|\ \ | | | | | | | Renamed FunctionType::hasEqualArgumentTypes to FunctionType::hasEqual… | ||||
| * | | Renamed FunctionType::hasEqualArgumentTypes to ↵ | Jesse Busman | 2018-08-06 | 2 | -5/+5 |
| |/ | | | | | | | FunctionType::hasEqualParameterTypes | ||||
* | | Merge pull request #4671 from ethereum/mappingTupleAssignment | chriseth | 2018-08-06 | 2 | -5/+33 |
|\ \ | |/ |/| | Disallow assignments to mappings within tuple assignments; allow for local variables. | ||||
| * | Review suggestions; to be squashed. | Daniel Kirchner | 2018-08-03 | 1 | -8/+10 |
| | | |||||
| * | Allow assignments to local variables of mapping types. | Daniel Kirchner | 2018-08-03 | 1 | -1/+9 |
| | | |||||
| * | Disallow assignments to mappings within tuple assignments. | Daniel Kirchner | 2018-08-03 | 2 | -5/+23 |
| | | |||||
* | | Merge pull request #4644 from ethereum/event_struct_error | chriseth | 2018-08-06 | 1 | -0/+10 |
|\ \ | | | | | | | Disallow structs in events without ABIEncoderV2 | ||||
| * | | Disallow structs in events without ABIEncoderV2 | Leonardo Alt | 2018-08-03 | 1 | -0/+10 |
| |/ | |||||
* | | Merge pull request #4681 from ethereum/var-suggestion-crash | chriseth | 2018-08-06 | 1 | -0/+6 |
|\ \ | | | | | | | Fix declaration suggestion for var with different number of components | ||||
| * | | Fix declaration suggestion for var with different number of components | Alex Beregszaszi | 2018-08-04 | 1 | -0/+6 |
| |/ | |||||
* | | Merge pull request #4412 from ethereum/v050-reference-resolver-errorTypeForLoose | Christian Parpart | 2018-08-04 | 2 | -6/+2 |
|\ \ | |/ |/| | [BREAKING] permanently set errorTypeForLoose from Warning to SyntaxError | ||||
| * | Disallow loos assembly in Solidity by permanently setting it to SyntaxError ↵ | Christian Parpart | 2018-08-02 | 2 | -6/+2 |
| | | | | | | | | (from Warning) | ||||
* | | Turn warning about uninitialized storage returns into an error. | Daniel Kirchner | 2018-08-03 | 1 | -5/+5 |
| | | |||||
* | | Merge pull request #4522 from ethereum/fullEncodingType | chriseth | 2018-08-02 | 1 | -16/+2 |
|\ \ | |/ |/| | Isolate determining the encoding type into its own function. | ||||
| * | Isolate determining the encoding type into its own function. | chriseth | 2018-08-01 | 1 | -16/+2 |
| | | |||||
* | | Extend code comment about signatures. | Daniel Kirchner | 2018-08-01 | 1 | -1/+2 |
| | | |||||
* | | Do not exclude public state variables when looking for conflicting declarations. | Daniel Kirchner | 2018-08-01 | 1 | -8/+1 |
| | | |||||
* | | Merge pull request #4378 from ethereum/noBaseWithoutArguments | Alex Beregszaszi | 2018-08-01 | 1 | -17/+7 |
|\ \ | | | | | | | [BREAKING] Disallow calling base constructors without arguments. | ||||
| * | | Correctly determine whether base constructor is called without parentheses. | chriseth | 2018-08-01 | 1 | -11/+11 |
| | | | |||||
| * | | Disallow calling base constructors without arguments. | chriseth | 2018-08-01 | 1 | -14/+4 |
| |/ | |||||
* / | Guard CycleDetector against recursion exhaustion. | Christian Parpart | 2018-08-01 | 2 | -2/+8 |
|/ | | | | fixes #3935. | ||||
* | Merge pull request #4507 from ethereum/v050-var-keyword-trace-removals | Alex Beregszaszi | 2018-08-01 | 1 | -2/+19 |
|\ | | | | | Ensures an empty use of var keyword is caught with the proper non-fatal error message | ||||
| * | Ensures an empty use of var keyword is caught with the proper error message. | Christian Parpart | 2018-08-01 | 1 | -2/+19 |
| | | |||||
* | | Fix crash when FunctionType has undeclared type as parameter | Leonardo Alt | 2018-07-31 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #4527 from ethereum/mappingEnforceStorage | Alex Beregszaszi | 2018-07-24 | 1 | -1/+8 |
|\ \ | | | | | | | Enforces explicit data location for mappings | ||||
| * | | Enforces data location of local mappings to storage. | Erik Kundt | 2018-07-24 | 1 | -1/+8 |
| | | | |||||
* | | | Disallow functions without implementation to use modifiers. This was already ↵ | Christian Parpart | 2018-07-24 | 1 | -8/+2 |
| |/ |/| | | | | | the case in the experimental 0.5.0 mode. | ||||
* | | Do not handle `balance` member of contract types specially. | chriseth | 2018-07-20 | 1 | -2/+1 |
| | | |||||
* | | Merge pull request #4439 from ethereum/address_members | chriseth | 2018-07-19 | 1 | -18/+16 |
|\ \ | | | | | | | [BREAKING] Enforce address members not accessible by contract instance | ||||
| * | | Changes in ExpressionCompiler | Leonardo Alt | 2018-07-19 | 1 | -2/+3 |
| | | | |||||
| * | | Add suggestion to error message | Leonardo Alt | 2018-07-17 | 1 | -18/+15 |
| | | | |||||
* | | | Adds warning if function is shadowing a contract. | Erik Kundt | 2018-07-18 | 1 | -9/+1 |
| | | | |||||
* | | | Disallows old constructor syntax. | Erik Kundt | 2018-07-18 | 2 | -25/+17 |
| |/ |/| | |||||
* | | Suggests external for fallback and interface functions. | chriseth | 2018-07-18 | 2 | -1/+15 |
| | | |||||
* | | Enforces visibility specifier and updates docs. | Erik Kundt | 2018-07-17 | 2 | -11/+1 |
|/ | |||||
* | Add missing period in the end of error messages | Leonardo Alt | 2018-07-16 | 1 | -3/+3 |
| | |||||
* | Deprecate the throw statement | Alex Beregszaszi | 2018-07-16 | 1 | -12/+4 |
| | |||||
* | enforce interface-functions to be external-declared | Christian Parpart | 2018-07-16 | 1 | -12/+4 |
| | | | | | | | | - libsolidity: Enforce interface-functions must be external-declared. - Changelog adapted to reflect changes wrt. functions in interfaces. - test: Adjustments according to prior interface-function changes. - tests: Adapting SolidityEndToEndTest to interface-function change. - docs: Adapted documentation to interface-function change. | ||||
* | Merge pull request #4501 from ethereum/recursiveStructsWithFixedArrays | chriseth | 2018-07-13 | 1 | -13/+16 |
|\ | | | | | Consider fixed-size arrays when checking for recursive structs. | ||||
| * | Use CycleDetector and account for multi-dimensional arrays. | Daniel Kirchner | 2018-07-13 | 1 | -19/+16 |
| | | |||||
| * | Consider fixed size array members when checking for recursive structs. | Daniel Kirchner | 2018-07-13 | 1 | -0/+6 |
| | | |||||
* | | Disallow multi variable declarations with mismatching number of values. | Daniel Kirchner | 2018-07-13 | 1 | -72/+16 |
|/ | |||||
* | Merge pull request #4437 from ethereum/report-empty-var-decls | chriseth | 2018-07-13 | 2 | -0/+15 |
|\ | | | | | [BREAKING] Report empty var tuple decls | ||||
| * | Generates a syntax error when declaring a variable declaration's LHS has no ↵ | Christian Parpart | 2018-07-12 | 2 | -0/+15 |
| | | | | | | | | named components | ||||
* | | Require storage location. | Daniel Kirchner | 2018-07-12 | 1 | -13/+4 |
|/ | |||||
* | Merge pull request #4443 from ethereum/double_var_decl_fix | chriseth | 2018-07-12 | 3 | -1/+15 |
|\ | | | | | Fix crash when declaring the same var twice in the same scope | ||||
| * | Add comment explaining new code | Leonardo Alt | 2018-07-11 | 1 | -0/+5 |
| | | |||||
| * | Fix crash for double variable declaration in the same scope. | Leonardo Alt | 2018-07-11 | 3 | -1/+10 |
| | | |||||
* | | Merge pull request #4404 from ethereum/v050-var-keyword-suggest | Christian Parpart | 2018-07-11 | 3 | -19/+63 |
|\ \ | | | | | | | [WIP] v0.5.0 var keyword type suggestion | ||||
| * | | Coding style. | chriseth | 2018-07-11 | 1 | -23/+18 |
| | | | |||||
| * | | semantics: Suggest auto-deduced type when user declares variable with `var` ↵ | Christian Parpart | 2018-07-11 | 3 | -19/+68 |
| | | | | | | | | | | | | keyword. | ||||
* | | | Merge pull request #4454 from ethereum/constructorArgCount | chriseth | 2018-07-11 | 1 | -24/+9 |
|\ \ \ | | | | | | | | | [BREAKING] Wrong argument count in constructor call | ||||
| * | | | Improves error with suggestion to remove parantheses. | Erik Kundt | 2018-07-11 | 1 | -1/+1 |
| | | | | |||||
| * | | | Updates Changelog, syntax test and simplifies type checker. | Erik Kundt | 2018-07-11 | 1 | -3/+1 |
| | | | | |||||
| * | | | Turns wrong argument count in base constructor call into en error. | Erik Kundt | 2018-07-11 | 1 | -22/+9 |
| |/ / | |||||
* | | | Merge pull request #4388 from ethereum/noPackedLiterals | chriseth | 2018-07-11 | 1 | -17/+7 |
|\ \ \ | | | | | | | | | Disallow packed encoding of literals. | ||||
| * | | | Disallow packed encoding of literals. | chriseth | 2018-07-03 | 1 | -17/+7 |
| | | | | |||||
* | | | | Code, Changelog, ReleaseChecklist: Fix typos. | Cryptomental | 2018-07-11 | 2 | -2/+2 |
| |/ / |/| | | | | | | | | Refs: #4442 | ||||
* | | | Merge pull request #4376 from ethereum/fallbackExternal | chriseth | 2018-07-11 | 1 | -4/+1 |
|\ \ \ | | | | | | | | | Fallback functions have to be external | ||||
| * | | | Fallback function has to be external. | chriseth | 2018-07-04 | 1 | -4/+1 |
| | | | | |||||
* | | | | Merge pull request #4464 from ↵ | chriseth | 2018-07-11 | 1 | -1/+1 |
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | cryptomental/bugfix/fix-typos-in-AsmParser-and-TypeChecker AsmParser,TypeChecker: Fix typos. | ||||
| * | | | | AsmParser,TypeChecker: Fix typos. | Cryptomental | 2018-07-10 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix typos. The change requested as a separate PR during codespell PR. Adapt tests as well. Refs: #4442 | ||||
* | | | | | Merge pull request #4466 from ethereum/tupleNotEmpty | chriseth | 2018-07-11 | 1 | -11/+2 |
|\ \ \ \ \ | |_|_|_|/ |/| | | | | Disallow empty tuple components. | ||||
| * | | | | Remove special ``(x,)`` case from type assignment. | chriseth | 2018-07-10 | 1 | -4/+0 |
| | | | | | |||||
| * | | | | Disallow empty tuple components. | Daniel Kirchner | 2018-07-10 | 1 | -7/+2 |
| | | | | | |||||
* | | | | | defaulting to v0.5.0 behaviour of unary + operator (disallow); also adapting ↵ | Christian Parpart | 2018-07-10 | 1 | -8/+2 |
| | | | | | | | | | | | | | | | | | | | | all tests to it | ||||
* | | | | | Merge pull request #4415 from ethereum/uninitializedStoragePointer | chriseth | 2018-07-10 | 1 | -4/+1 |
|\ \ \ \ \ | |/ / / / |/| | | | | [BREAKING] Turn uninitialized storage variables into error. | ||||
| * | | | | Turn uninitialized storage variables into an error. | Daniel Kirchner | 2018-07-10 | 1 | -4/+1 |
| |/ / / | |||||
* / / / | Check for matching number of components in ↵ | Daniel Kirchner | 2018-07-10 | 1 | -19/+1 |
|/ / / | | | | | | | | | | TupleType::isImplicitlyConvertibleTo instead of the TypeChecker. | ||||
* | | | Enforce error on hex number combined with unit denomination | Leonardo Alt | 2018-07-09 | 1 | -17/+6 |
| | | | |||||
* | | | Merge pull request #4418 from ethereum/initialConstants | chriseth | 2018-07-05 | 1 | -13/+4 |
|\ \ \ | | | | | | | | | Only allow compile-time constants for constant state variables. | ||||
| * | | | Only allow compile-time constants for constant state variables. | chriseth | 2018-07-04 | 1 | -13/+4 |
| |/ / | |||||
* | | | Merge pull request #4409 from ethereum/viewPureChecker | chriseth | 2018-07-04 | 2 | -26/+13 |
|\ \ \ | | | | | | | | | Enforce state mutability in view pure checker. | ||||
| * | | | Remove v050 check for enforcing "view" in ViewPureChecker. | Daniel Kirchner | 2018-07-04 | 2 | -26/+13 |
| |/ / | |||||
* / / | Enforcing error on msg.gas and block.blockhash() | Leonardo Alt | 2018-07-04 | 1 | -27/+9 |
|/ / | |||||
* | | Merge pull request #4379 from ethereum/constructorArgsTwice | chriseth | 2018-07-04 | 1 | -14/+5 |
|\ \ | | | | | | | Disallow constructor arguments given multiple times. | ||||
| * | | Disallow constructor arguments given multiple times. | chriseth | 2018-06-29 | 1 | -14/+5 |
| | | | |||||
* | | | libsolidity: turns the var-keyword use from deprecation-warning to an error ↵ | Christian Parpart | 2018-07-03 | 1 | -6/+1 |
| |/ |/| | | | | | and include explicit type suggestion | ||||
* | | Remove trailing whitespace in missing visibility warning. | Daniel Kirchner | 2018-07-02 | 1 | -2/+2 |
|/ | |||||
* | Merge pull request #4352 from D-Nice/develop | chriseth | 2018-06-29 | 1 | -1/+1 |
|\ | | | | | Fixes storage ref var typo error from 'prefix' to 'suffix' | ||||
| * | Fixes storage ref var typo error from 'prefix' to 'suffix' | D-Nice | 2018-06-25 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #4097 from ethereum/noPackedExceptForPacked | chriseth | 2018-06-28 | 2 | -37/+44 |
|\ \ | | | | | | | [BREAKING] call only takes a single argument and does not pad | ||||
| * | | Also mention regular abi.encode in error message. | chriseth | 2018-06-27 | 1 | -2/+8 |
| | | | |||||
| * | | Provide better suggestions in error messages with respect to call and hash ↵ | chriseth | 2018-06-25 | 1 | -4/+34 |
| | | | | | | | | | | | | functions. | ||||
| * | | Bare functions take single bytes argument. | chriseth | 2018-06-25 | 2 | -33/+4 |
| | | | |||||
* | | | Remove non-0.5.0 warning for emit keyword (make it mandatory) | Alex Beregszaszi | 2018-06-27 | 1 | -6/+1 |
|/ / | |||||
* | | Keep the 'if it not used as an address' helper message for all cases of ↵ | Alex Beregszaszi | 2018-06-25 | 1 | -7/+12 |
| | | | | | | | | address related warnings | ||||
* | | Better wording for invalid address literal error | Alex Beregszaszi | 2018-06-25 | 1 | -2/+4 |
| | | |||||
* | | Change invalid (not exactly 160 bits long) address literal to error | Jason Cobb | 2018-06-25 | 1 | -4/+11 |
|/ | |||||
* | Disallow the years unit denomination properly | Alex Beregszaszi | 2018-06-22 | 1 | -12/+4 |
| | |||||
* | Merge pull request #4301 from rnaby/TypeChecker | chriseth | 2018-06-22 | 1 | -5/+3 |
|\ | | | | | Simplification of typeSupportedByOldABIEncoder | ||||
| * | Simplification of typeSupportedByOldABIEncoder | Khan M Rashedun-Naby | 2018-06-21 | 1 | -5/+3 |
| | | |||||
* | | Merge pull request #4306 from ethereum/remove_050_workaround_scoping | chriseth | 2018-06-21 | 4 | -36/+23 |
|\ \ | | | | | | | [BREAKING] C99 scoping rules by default (remove 050 workaround) | ||||
| * | | C99 scoping rules by default | Leonardo Alt | 2018-06-20 | 4 | -36/+23 |
| | | | |||||
* | | | Merge pull request #4219 from ethereum/functionTypeNamedArguments | Alex Beregszaszi | 2018-06-21 | 1 | -1/+1 |
|\ \ \ | |/ / |/| | | Turn named return parameters in function types into an error. | ||||
| * | | Return parameters in function types may not be named. | Daniel Kirchner | 2018-06-18 | 1 | -1/+1 |
| |/ | |||||
* / | Disallow raw callcode (was deprecated in 0.4.12) | Alex Beregszaszi | 2018-06-20 | 1 | -12/+4 |
|/ | |||||
* | Enforce disallowing empty structs | Christian Parpart | 2018-06-14 | 1 | -8/+2 |
| | | | | | | | | This patch enfoces an error when it encounters an empty struct, effectively eliminating the deprecation warning. Also adjust 419_interface_structs to explicitely test for (non-empty) structs, as this behaviour "may" change in the future. | ||||
* | Disallow sha3/suicide aliases | Alex Beregszaszi | 2018-06-13 | 1 | -10/+2 |
| | |||||
* | Show named argument name in error | Alex Beregszaszi | 2018-06-06 | 1 | -1/+1 |
| | |||||
* | Fix view/pure error ordering problem. | chriseth | 2018-06-04 | 1 | -2/+2 |
| | |||||
* | Allow using `calldata` keyword to specify data location | mingchuan | 2018-05-30 | 2 | -8/+32 |
| | |||||
* | Update control flow graph. | Daniel Kirchner | 2018-05-17 | 1 | -5/+4 |
| | |||||
* | Split warning for multi arguments for hash functions | Alex Beregszaszi | 2018-05-16 | 1 | -10/+12 |
| | |||||
* | Warn/enforce single bytes argument for certain builtins (hashing functions). | chriseth | 2018-05-16 | 1 | -0/+27 |
| | | | | | In 0.5.0 mode, only accept a single bytes argument for ``.call``, ``keccak256`` and others and do not pad when encoding. | ||||
* | ABI encoding functions are pure and should be usable in constants. | chriseth | 2018-05-15 | 1 | -0/+3 |
| | |||||
* | Add control flow analyzer and test for uninitialized storage returns. | Daniel Kirchner | 2018-05-15 | 2 | -0/+208 |
| | |||||
* | Add control flow graph. | Daniel Kirchner | 2018-05-15 | 4 | -0/+797 |
| | |||||
* | Deprecate wildcard assignments. | chriseth | 2018-05-08 | 1 | -8/+49 |
| | |||||
* | Merge pull request #4063 from ethereum/emit-non-event | chriseth | 2018-05-04 | 1 | -0/+1 |
|\ | | | | | Show proper error when trying to emit a non-event | ||||
| * | Show proper error when trying to emit a non-event | Alex Beregszaszi | 2018-05-04 | 1 | -0/+1 |
| | | |||||
* | | Change numBits to unsigned IntegerType | Alex Beregszaszi | 2018-05-03 | 1 | -1/+2 |
|/ | |||||
* | Merge pull request #3981 from ethereum/years-suffix | chriseth | 2018-04-24 | 1 | -0/+16 |
|\ | | | | | The "year" denomination is deprecated | ||||
| * | The "year" denomination is deprecated | Alex Beregszaszi | 2018-04-23 | 1 | -0/+16 |
| | | |||||
* | | Merge pull request #3976 from ethereum/emptyTupleComponent | chriseth | 2018-04-23 | 1 | -0/+13 |
|\ \ | |/ |/| | Empty tuple components should not be possible | ||||
| * | Treats inline array as an error. | Erik Kundt | 2018-04-23 | 1 | -0/+2 |
| | | |||||
| * | Turns it into warning (error for 0.5.0) and adds Changelog entry. | Erik Kundt | 2018-04-23 | 1 | -1/+8 |
| | | |||||
| * | Prevents null type from being used in tuple. | Erik Kundt | 2018-04-22 | 1 | -0/+4 |
| | | |||||
* | | Turn deprecated warnings for sha3/suicide into errors (experimental 0.5.0) | Alex Beregszaszi | 2018-04-21 | 1 | -2/+10 |
|/ | |||||
* | Make literals an error for tight packing (experimental 0.5.0) | Alex Beregszaszi | 2018-04-20 | 1 | -8/+18 |
| | |||||
* | Improve error message for failed member lookup. | chriseth | 2018-04-19 | 1 | -11/+16 |
| | |||||
* | Warn about functions named "constructor". | chriseth | 2018-04-19 | 1 | -1/+6 |
| | |||||
* | Fix name clashes between constructor and fallback function. | chriseth | 2018-04-18 | 1 | -47/+45 |
| | |||||
* | Merge pull request #3880 from ethereum/addressMemberDocAndWarn | chriseth | 2018-04-16 | 1 | -1/+2 |
|\ | | | | | Improve documentation and warning about accessing contract members in… | ||||
| * | Improve documentation and warning about accessing contract members inherited ↵ | Daniel Kirchner | 2018-04-14 | 1 | -1/+2 |
| | | | | | | | | from address. | ||||
* | | Merge pull request #3875 from ethereum/constructorSelfRef | chriseth | 2018-04-14 | 1 | -4/+26 |
|\ \ | |/ |/| | Stricter check for "this" in constructor. | ||||
| * | Stricter check for member access to "this" in constructor. | Daniel Kirchner | 2018-04-13 | 1 | -4/+26 |
| | | |||||
* | | Merge pull request #3364 from ethereum/revertWithReason | chriseth | 2018-04-13 | 4 | -8/+18 |
|\ \ | | | | | | | Revert with reason | ||||
| * | | Allow error string for ``require``. | chriseth | 2018-04-12 | 1 | -0/+1 |
| | | | |||||
| * | | Register overload for ``revert()`` that can receive a reason string. | chriseth | 2018-04-12 | 2 | -1/+4 |
| | | | |||||
| * | | Allow function overloads involving MagicVariableDeclarations. | chriseth | 2018-04-12 | 3 | -7/+13 |
| |/ | |||||
* | | Merge pull request #2980 from ethereum/abi-api | chriseth | 2018-04-13 | 3 | -11/+39 |
|\ \ | |/ |/| | Add abi.encode and abi.encodePacked | ||||
| * | Allow struct encoding with new encoder. | chriseth | 2018-04-12 | 1 | -7/+18 |
| | | |||||
| * | Check partial function parameters if rest is arbitrary. | chriseth | 2018-04-12 | 1 | -3/+14 |
| | | |||||
| * | Add abi.encode, abi.encodePacked, abi.encodeWithSelector and ↵ | Alex Beregszaszi | 2018-04-12 | 2 | -1/+7 |
| | | | | | | | | abi.encodeWithSignature. | ||||
* | | Merge pull request #3848 from ethereum/constantDivisionByZero | chriseth | 2018-04-12 | 2 | -0/+44 |
|\ \ | |/ |/| | Error on invalid arithmetic with constant expressions. | ||||
| * | Error on invalid arithmetic with constant expressions. | Daniel Kirchner | 2018-04-12 | 2 | -0/+44 |
| | | |||||
* | | Warn if modifiers are applied to functions without implementation. | chriseth | 2018-04-12 | 1 | -0/+7 |
|/ | |||||
* | Fix ConstantEvaluator to correctly handle single element tuples. | Daniel Kirchner | 2018-04-12 | 2 | -0/+7 |
| | |||||
* | Merge pull request #3309 from ethereum/limit-errors | chriseth | 2018-04-11 | 1 | -11/+1 |
|\ | | | | | Limit the number of errors output in a single run to 256 | ||||
| * | Catch FatalError in CompilerStack::analysis to cover all the analysis tests | Alex Beregszaszi | 2018-04-06 | 1 | -11/+1 |
| | | |||||
* | | Error when using no parentheses in modifier-style constructor calls. | Daniel Kirchner | 2018-04-10 | 1 | -4/+23 |
| | | |||||
* | | Use the most derived contract as main location in case of diamond inheritance. | Daniel Kirchner | 2018-04-09 | 1 | -3/+18 |
| | | |||||
* | | Move constructor argument override check to TypeChecker and reuse ↵ | Daniel Kirchner | 2018-04-09 | 4 | -65/+60 |
| | | | | | | | | annotations in ContractCompiler. | ||||
* | | Allow duplicated constructor calls, if no arguments; support for multiple ↵ | Daniel Kirchner | 2018-04-09 | 1 | -20/+30 |
| | | | | | | | | | | | | inheritance; backwards compatibility. # tmp | ||||
* | | Error on duplicated super constructor calls | Federico Bond | 2018-04-09 | 2 | -0/+33 |
| | | |||||
* | | Static Analyzer: Fix non-deterministic order of unused variable warnings. | Daniel Kirchner | 2018-04-07 | 2 | -8/+10 |
|/ | |||||
* | Merge pull request #3824 from ethereum/baseArgumentsEmptyParenthesis | Daniel Kirchner | 2018-04-05 | 1 | -23/+39 |
|\ | | | | | Error when using empty parentheses for base class constructors that r… | ||||
| * | Error when using empty parenthesis for base class constructors that require ↵ | Daniel Kirchner | 2018-04-05 | 1 | -23/+39 |
| | | | | | | | | arguments. | ||||
* | | Merge pull request #3745 from ethereum/fixRecursion | Alex Beregszaszi | 2018-04-05 | 2 | -19/+22 |
|\ \ | |/ |/| | Fix invalid recursion errors for structs | ||||
| * | Generalize cycle detection. | chriseth | 2018-04-03 | 2 | -19/+22 |
| | | |||||
* | | Constructors are defined using the ``constructor`` keyword. | Daniel Kirchner | 2018-04-04 | 1 | -1/+16 |
|/ | |||||
* | Merge pull request #3699 from ethereum/interfaceExternalVisibility | Alex Beregszaszi | 2018-04-03 | 2 | -12/+13 |
|\ | | | | | Defaults to external visibility for interfaces. | ||||
| * | Makes visibility warning more concise. | Erik Kundt | 2018-04-03 | 1 | -2/+4 |
| | | |||||
| * | Defaults to external visibility for interfaces. | bitshift | 2018-04-03 | 2 | -12/+11 |
| | | |||||
* | | Merge pull request #3790 from ethereum/empty-structs | chriseth | 2018-03-30 | 2 | -0/+16 |
|\ \ | | | | | | | Disallow empty structs | ||||
| * | | Still allow empty structs for non-0.5.0 mode | Alex Beregszaszi | 2018-03-27 | 1 | -1/+8 |
| | | | |||||
| * | | Disallow empty structs | Alex Beregszaszi | 2018-03-27 | 2 | -0/+9 |
| |/ | |||||
* / | Prevent encoding of weird types and support packed encoding of external ↵ | chriseth | 2018-03-29 | 1 | -0/+11 |
|/ | | | | function types. | ||||
* | Merge pull request #3681 from ethereum/interface-external | chriseth | 2018-03-27 | 1 | -0/+9 |
|\ | | | | | Allow overriding external functions in interfaces with public in a child | ||||
| * | Introduce inContractKind helper on FunctionDefinition | Alex Beregszaszi | 2018-03-26 | 1 | -11/+5 |
| | | |||||
| * | Allow overriding external functions in interfaces with public in an ↵ | Alex Beregszaszi | 2018-03-26 | 1 | -0/+15 |
| | | | | | | | | implementing contract | ||||
* | | Changes deprecation and adjusts tests. | bitshift | 2018-03-27 | 1 | -0/+15 |
| | | |||||
* | | Moves blockhash function to global level. | bitshift | 2018-03-27 | 1 | -0/+1 |
|/ | |||||
* | Decode dynamic data. | chriseth | 2018-03-21 | 1 | -1/+1 |
| | |||||
* | Move dynamic type removal out of the type system. | chriseth | 2018-03-21 | 1 | -3/+9 |
| | |||||
* | Merge pull request #3611 from ethereum/warn-using-address-overload | Alex Beregszaszi | 2018-03-07 | 1 | -0/+14 |
|\ | | | | | Warn if using address overloads on contracts | ||||
| * | Assert that address members are not present on contract types in 0.5.0. | chriseth | 2018-03-05 | 1 | -0/+4 |
| | | |||||
| * | Warn if using address overloads on contracts | Alex Beregszaszi | 2018-03-05 | 1 | -0/+10 |
| | | |||||
* | | Merge pull request #3664 from ethereum/literalsHexUnitSmallFix | chriseth | 2018-03-07 | 1 | -2/+2 |
|\ \ | | | | | | | Use double quotes for suggestion about hex literals and denominations. | ||||
| * | | Use double quotes for suggestion about hex literals and denominations. | Daniel Kirchner | 2018-03-07 | 1 | -2/+2 |
| | | | |||||
* | | | Warn about using loose inline assembly features as experimental 0.5.0 feature. | chriseth | 2018-03-07 | 2 | -1/+7 |
|/ / | |||||
* | | Merge pull request #3549 from ethereum/fixmultidim | Alex Beregszaszi | 2018-03-06 | 1 | -4/+26 |
|\ \ | | | | | | | Properly detect which array and struct types are unsupported by the old ABI encoder. | ||||
| * | | Fix multi-dimensional arrays in the ABI. | chriseth | 2018-03-01 | 1 | -4/+26 |
| | | | |||||
* | | | Merge pull request #3652 from ethereum/gasleft_v2 | chriseth | 2018-03-06 | 1 | -1/+18 |
|\ \ \ | | | | | | | | | Use StaticAnalyzer to deprecate msg.gas instead of conditionally remo… | ||||
| * | | | Use StaticAnalyzer to deprecate msg.gas instead of conditionally removing it ↵ | Daniel Kirchner | 2018-03-06 | 1 | -1/+18 |
| | | | | | | | | | | | | | | | | in MagicType. | ||||
* | | | | Merge pull request #3643 from ethereum/gasleft | chriseth | 2018-03-06 | 1 | -0/+1 |
|\| | | | |_|/ |/| | | Move msg.gas to global function gasleft(). Closes #2971. | ||||
| * | | Move msg.gas to global function gasleft(). Closes #2971. | Daniel Kirchner | 2018-03-05 | 1 | -0/+1 |
| | | | |||||
* | | | Merge pull request #3569 from ethereum/evmVersion | chriseth | 2018-03-05 | 3 | -2/+11 |
|\ \ \ | |/ / |/| | | EVM version | ||||
| * | | Provide EVM version to assembly analysis. | chriseth | 2018-03-02 | 2 | -1/+3 |
| | | | |||||
| * | | Use EVM version in type checker. | chriseth | 2018-03-02 | 1 | -1/+8 |
| |/ | |||||
* | | Suggest expressions of the form '0x1234 * 1 day' instead of hex numbers with ↵ | Daniel Kirchner | 2018-03-02 | 1 | -2/+4 |
| | | | | | | | | unit denominations. | ||||
* | | Deprecate using unit denominations in combination with hex numbers. Closes ↵ | Daniel Kirchner | 2018-03-01 | 1 | -0/+15 |
|/ | | | | #3574. | ||||
* | Merge pull request #3613 from ethereum/require-visibility | chriseth | 2018-02-28 | 1 | -6/+13 |
|\ | | | | | Issue error if no visibility is specified (on 0.5.0) | ||||
| * | Issue error if no visibility is specified (on 0.5.0) | Alex Beregszaszi | 2018-02-27 | 1 | -6/+13 |
| | | |||||
* | | Only active variables at the point of their declaration. | chriseth | 2018-02-27 | 6 | -30/+84 |
| | | |||||
* | | Enable C99-scoping with the 0.5.0-experimental pragma. | chriseth | 2018-02-27 | 3 | -17/+31 |
| | | |||||
* | | Blocks and for loops can be scopes. | chriseth | 2018-02-27 | 4 | -1/+63 |
| | | |||||
* | | Scopes do not have to be declarations. | chriseth | 2018-02-27 | 2 | -11/+23 |
| | | |||||
* | | Make all lookups recursive by default. | chriseth | 2018-02-27 | 2 | -10/+11 |
|/ | |||||
* | Turn throw into a syntax error for 0.5.0 | Alex Beregszaszi | 2018-02-27 | 1 | -4/+12 |
| | |||||
* | Warn about using events without emit. | chriseth | 2018-02-22 | 2 | -1/+13 |
| |