feat(evm): inspect lossless Solidity terminal CBOR metadata (#2790)

feat(evm): retain lossless terminal CBOR metadata

Refs morluto/rea#2388

Co-authored-by: Matheus Breguêz <matbrgz@gmail.com>
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
morluto
2026-10-13 21:55:30 +08:00
committed by GitHub
co-authored by Matheus Breguêz Codex
parent a3daf8a07b
commit 48a683ac8c
24 changed files with 1002 additions and 5 deletions
+2
View File
@@ -6,6 +6,7 @@ import {
EvmCarrierFailure,
} from "./EvmBytecodeCarrier.js";
import { projectEvmoleInterface } from "./EvmoleInterfaceAdapter.js";
import { inspectSolidityMetadata } from "./SolidityMetadata.js";
import {
EVM_INTERFACE_LIMITS,
EVM_FILE_SIZE_FAILURE_EXIT,
@@ -64,6 +65,7 @@ const main = async (): Promise<void> => {
sha256: createHash("sha256").update(bytes).digest("hex"),
bytes: bytes.length,
hex: Buffer.from(bytes).toString("hex"),
metadata: inspectSolidityMetadata(bytes),
},
raw: inferred.raw,
};