From: Ardis Lu Date: Sun, 25 Jun 2023 02:55:23 +0000 (-0700) Subject: Clarify note on metadata generation X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=b5e76d8af6ee16c710d3b71446c66a5c7dabce53;p=solc-metadata Clarify note on metadata generation --- diff --git a/README.md b/README.md index 7b78d2f..a84dfde 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ By default, the Solidity compiler appends metadata to the end of a smart contrac ## Extract -After the runtime bytecode is fetched, the metadata may be extracted by reading the last ~53 or so bytes from the end of the runtime bytecode. The exact length will vary depending on the version of `solc` used to compile the bytecode. See the [`solc` docs](https://docs.soliditylang.org/en/v0.8.19/metadata.html#encoding-of-the-metadata-hash-in-the-bytecode) for details about how this metadata is encoded and how exactly to extract the metadata. +After the runtime bytecode is fetched, the metadata may be extracted by reading the last ~53 or so bytes from the end of the runtime bytecode. The exact length will vary depending on the version of `solc` and the exact compiler settings used to compile the bytecode. See the [`solc` docs](https://docs.soliditylang.org/en/latest/metadata.html#encoding-of-the-metadata-hash-in-the-bytecode) for details about how this metadata is encoded and how exactly to extract the metadata. ## Decode