]> git.ardis.lu - solc-metadata/commitdiff
Add warning about metadata validation
authorArdis Lu <ardisglu@gmail.com>
Sun, 12 Nov 2023 04:02:22 +0000 (20:02 -0800)
committerArdis Lu <ardisglu@gmail.com>
Sun, 12 Nov 2023 04:02:22 +0000 (20:02 -0800)
README.md

index a84dfdec6c0d38f6fbba2385a4dcdf8f0fe69b5a..76501f63f80f8332ead2c9ddd16cfb713bee4477 100644 (file)
--- a/README.md
+++ b/README.md
@@ -4,6 +4,9 @@ This is the minimum JavaScript required to fetch, extract, decode, and use the [
 
 Similar to sourcify's metadata playground ([website](https://playground.sourcify.dev/), [GitHub](https://github.com/sourcifyeth/metadata-playground)) but reduced to the bare minimum code.
 
+> [!WARNING]<br>
+> This tool does not validate the source code retrieved from the bytecode metadata. You **MUST** recompile the source code and match it with the on-chain bytecode to confirm the metadata is correct.
+
 ## Fetch
 
 By default, the Solidity compiler appends metadata to the end of a smart contract's runtime bytecode. A smart contract's runtime bytecode may be fetched from any Ethereum node using the standard JSON-RPC method [`eth_getCode`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getcode).
This page took 0.041777 seconds and 4 git commands to generate.