Alex Beregszaszi
ada046ba9a
Import prb-math for testing
...
From 62021c1abc
2021-04-27 20:08:33 +01:00
Alex Beregszaszi
5852972ec1
Merge pull request #11309 from ethereum/test-stringutils
...
Add some semantic tests using stringutils
2021-04-27 18:12:37 +01:00
Alex Beregszaszi
5331bc679a
Fix some issues regarding checked arithmethics in stringutils
2021-04-27 17:05:40 +01:00
Alex Beregszaszi
6b3357be50
Add semantic tests using stringutils
2021-04-27 17:02:54 +01:00
chriseth
3548049c61
Merge pull request #10356 from ethereum/isoltest-add-enforce-ewasm
...
[test] Add support for --enforce-compile-to-ewasm.
2021-04-27 17:51:33 +02:00
chriseth
b5b8833116
Merge pull request #11319 from ethereum/optimization-level-in-object-compiler-test
...
optimizationPreset setting in object compiler tests + refactor
2021-04-27 16:51:31 +02:00
chriseth
28c3b38308
Merge pull request #11293 from ethereum/ethassemblyadapter
...
Split EthAssemblyAdapter from AsmCodeGen
2021-04-27 16:45:19 +02:00
Kamil Śliwak
43de99dee5
Use 'optimizationPreset: none' for objectCompiler tests that rely on things that could get optimized out
2021-04-27 14:07:04 +02:00
Kamil Śliwak
a51d72fb89
ObjectCompilerTest: Replace 'optimize' setting with 'optimizationPreset'
2021-04-27 14:06:56 +02:00
Kamil Śliwak
9c6f8c011f
TestCaseReader: Add enumSetting()
2021-04-27 14:06:56 +02:00
Kamil Śliwak
5023cef382
OptimiserSettings: Add preset() and OptimisationPreset enum
2021-04-27 14:06:44 +02:00
Harikrishnan Mulackal
a942e630d4
Merge pull request #11320 from irnb/develop
...
change variable declaration place
2021-04-27 13:56:11 +02:00
Kamil Śliwak
28b9d27fae
SoltestErrors: Qualify runtime_error with std:: to make it possible to use in in headers
2021-04-27 13:43:07 +02:00
newbateni
fccdb59cef
change variable declaration place
...
in Test and TestPayable contract (in Fallback Function section)
variables declared after their use and I fix that
2021-04-27 15:36:16 +04:30
Alex Beregszaszi
176ce4edf7
Split EthAssemblyAdapter from AsmCodeGen
2021-04-27 11:31:15 +01:00
Alex Beregszaszi
1a556aaa7f
Move compilationTests/stringutils to semanticTests/externalContracts
2021-04-27 11:21:14 +01:00
chriseth
f72592549b
Merge pull request #11110 from ethereum/issue_10475_isoltest_external_sources
...
[isoltest] Add support for external sources.
2021-04-27 10:54:39 +02:00
chriseth
5d087df929
Merge pull request #11318 from ethereum/stack-message
...
Throw StackTooDeep earlier (with sourcelocatiom) for inline assembly
2021-04-27 10:50:11 +02:00
Alexander Arlt
da38149f57
[test] Add support for --enforce-compile-to-ewasm.
2021-04-26 20:31:03 -05:00
Alex Beregszaszi
9d5b4150d4
Throw StackTooDeep earlier (with sourcelocatiom) for inline assembly issues
2021-04-26 20:11:50 +01:00
chriseth
2e99a56be2
Merge pull request #11123 from ethereum/verbatimdata
...
Add verbatim builtin.
2021-04-26 20:31:25 +02:00
chriseth
2b5a24e82e
Add function side effects test.
2021-04-26 19:56:44 +02:00
chriseth
cb1af8b88a
Make verbatim compatible with KnownState.
2021-04-26 19:56:44 +02:00
chriseth
e2d8005737
Add verbatim builtin.
2021-04-26 19:56:44 +02:00
Alexander Arlt
481971cbcf
[isoltest] Add support for external sources.
2021-04-26 08:27:30 -05:00
chriseth
2969bc0f3e
Merge pull request #11302 from ethereum/drop-u160
...
Drop the util::u160 type
2021-04-26 15:12:20 +02:00
chriseth
d4ea84511f
Merge pull request #11304 from ethereum/fix_test_builtins
...
Fix test builtins & add simple smoke test.
2021-04-26 15:12:00 +02:00
Alexander Arlt
8239eaa1b8
Fix test builtins & add simple smoke test.
2021-04-26 07:51:43 -05:00
chriseth
dce3006723
Merge pull request #11314 from ethereum/patch-1
...
[DOCS] Removed an overflow check and rely on checked arithmetic
2021-04-26 14:39:17 +02:00
chriseth
ddc030267e
Merge pull request #11315 from ethereum/minor-cf
...
ControlFlowAnalyzer: Use temporary reference for more readable code
2021-04-26 14:21:49 +02:00
chriseth
d9df3d50e2
Merge pull request #11311 from anurag-git/issue_10738-3
...
Use range-v3 loops(remove_erase, remove_erase_if)
2021-04-26 14:18:15 +02:00
Mathias Baumann
5f313ee52a
ControlFlowAnalyzer: Use temporary reference for more readable code
2021-04-26 13:24:17 +02:00
chriseth
659da4bdc7
Merge pull request #11047 from ethereum/bytesToBytesNNConversion
...
Bytes to bytesNN conversion
2021-04-26 11:51:41 +02:00
Wade Dorrell
9e0c52f621
Removed an overflow check and rely on checked arithmetic
...
The check `require(amount < 1e60);` was removed because it's rather confusing to reason why it
prevents overflow.
Co-authored-by: Wade Dorrell <wade@dorrells.org>
2021-04-26 09:43:16 +02:00
Harikrishnan Mulackal
83bb860e4b
Merge pull request #11313 from ethereum/fix_pylint
...
Fix problems detected by pylint 2.8.1.
2021-04-26 09:32:48 +02:00
Harikrishnan Mulackal
2cb525f607
Merge pull request #11306 from ethereum/toevminstruction
...
Add toEVMInstruction helper
2021-04-26 08:41:25 +02:00
Alexander Arlt
4e7dc24383
Fix problems detected by pylint 2.8.1.
2021-04-25 23:33:14 -05:00
anurag4u80
c4cf412fed
Replaced boost remove_erase and remove_erase_if
2021-04-24 08:10:41 +05:30
Alex Beregszaszi
eed0bf580b
Merge pull request #11308 from ethereum/error-cleanup
...
Remove obsolete Error constructor
2021-04-24 01:57:21 +01:00
Alex Beregszaszi
60189b4f61
Remove obsolete Error constructor
2021-04-23 23:55:22 +01:00
Alex Beregszaszi
d508544340
Add toEVMInstruction helper
...
Co-authored-by: Harikrishnan Mulackal <webmail.hari@gmail.com>
2021-04-23 22:56:50 +01:00
Kamil Śliwak
173a511809
Merge pull request #11303 from ethereum/noncopyable
...
Remove the usage of boost::noncopyable
2021-04-23 22:38:49 +02:00
Kamil Śliwak
9439ff8b02
Merge pull request #11301 from ra-phael/docs-clarify-init-value
...
[Docs] Clarify initialisation value of state variables
2021-04-23 22:37:59 +02:00
Alex Beregszaszi
1db3278f6a
Merge pull request #11305 from ethereum/ewasm-semantic-tests
...
Enable more semantic tests for Ewasm
2021-04-23 20:25:57 +01:00
Alex Beregszaszi
f952f851b7
Enable more semantic tests for Ewasm
2021-04-23 17:00:01 +01:00
Alex Beregszaszi
55577cbfc3
Merge pull request #10406 from ethereum/ewasm-polyfill-callvalue-gasprice-difficulty
...
[ewasm] Polyfill: callvalue, gasprice & difficulty.
2021-04-23 16:36:19 +01:00
Alex Beregszaszi
73b804aff4
Update tests
2021-04-23 15:54:10 +01:00
Alexander Arlt
fc7fb3cb7d
[ewasm] Polyfill: callvalue, gasprice & difficulty.
2021-04-23 15:54:10 +01:00
Alex Beregszaszi
e39433198d
Remove the usage of boost::noncopyable
...
Prior to this half of the codebase used explicit deleted copy constructors, the others used boost::noncopyable.
2021-04-23 14:57:01 +01:00
Alex Beregszaszi
ac192ff4c1
Drop the util::u160 type
2021-04-23 14:35:06 +01:00