Open zramsay opened 1 year ago
The solc version specified in example.config.yaml
is incorrect.
It should be v0.8.21+commit.d9974bed
The list of solc versions is available in https://etherscan.io/solcversions
ah, trying now. My mistake was copying the GitHub short commit. If the pragma version is not correct, the error is different:
Error: ParserError: Source file requires different compiler version (current compiler is 0.8.13+commit.abaa5c0e.Emscripten.clang) - note that nightly builds are considered to be strictly less than the released version
--> Resolver.sol:2:1:
|
2 | pragma solidity ^0.8.17;
| ^^^^^^^^^^^^^^^^^^^^^^^^
at /root/watcher-ts/packages/codegen/src/artifacts.ts:40:15
at Array.forEach (<anonymous>)
at /root/watcher-ts/packages/codegen/src/artifacts.ts:38:29
at step (/root/watcher-ts/packages/codegen/src/artifacts.ts:36:23)
at Object.next (/root/watcher-ts/packages/codegen/src/artifacts.ts:17:53)
at /root/watcher-ts/packages/codegen/src/artifacts.ts:11:71
at new Promise (<anonymous>)
at __awaiter (/root/watcher-ts/packages/codegen/src/artifacts.ts:7:12)
at generateArtifacts (/root/watcher-ts/packages/codegen/src/artifacts.ts:55:12)
at /root/watcher-ts/packages/codegen/src/generate-code.ts:104:61
Done in 424.26s.
on a fresh DO droplet with 2vCPUs, 16GB ram and 50 GB disk, I get:
<--- Last few GCs --->
[3724:0x769ff10] 332046 ms: Scavenge (reduce) 4072.1 (4142.9) -> 4071.8 (4143.2) MB, 7.2 / 0.0 ms (average mu = 0.100, current mu = 0.002) allocation failure;
[3724:0x769ff10] 343244 ms: Mark-sweep (reduce) 4072.4 (4143.2) -> 4071.7 (4143.4) MB, 11194.7 / 0.0 ms (average mu = 0.061, current mu = 0.017) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xb87bc0 node::Abort() [/root/.nvm/versions/node/v18.18.0/bin/node]
2: 0xa96834 [/root/.nvm/versions/node/v18.18.0/bin/node]
3: 0xd687f0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/root/.nvm/versions/node/v18.18.0/bin/node]
4: 0xd68b97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/root/.nvm/versions/node/v18.18.0/bin/node]
5: 0xf462a5 [/root/.nvm/versions/node/v18.18.0/bin/node]
6: 0xf471a8 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/root/.nvm/versions/node/v18.18.0/bin/node]
7: 0xf576b3 [/root/.nvm/versions/node/v18.18.0/bin/node]
8: 0xf58528 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/root/.nvm/versions/node/v18.18.0/bin/node]
9: 0xf32e8e v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/root/.nvm/versions/node/v18.18.0/bin/node]
10: 0xf34257 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/root/.nvm/versions/node/v18.18.0/bin/node]
11: 0xf1542a v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/root/.nvm/versions/node/v18.18.0/bin/node]
12: 0x12da78f v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/root/.nvm/versions/node/v18.18.0/bin/node]
13: 0x170a079 [/root/.nvm/versions/node/v18.18.0/bin/node]
Aborted (core dumped)
To reproduce:
using this
example.config.yaml
:The error:
same error for any contract