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:
co-authored by
Matheus Breguêz
Codex
parent
a3daf8a07b
commit
48a683ac8c
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user