Verify a Merkle Lockup contract in 4 easy steps #385
smol-ninja
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Tip
Since Etherscan automatically verifies the contracts based on the matching source code criterion, this verification is only required once per chain.
We will use the following MerkleLL contract, deployed on Polygon, as an example 0x8BBe....7776.
Step 1
👉 Click the contract creation tx from the "More Info" section.
Step 2
🧠 Click to show more → Memorize the function name from the default view.
📝 View input as original → Copy the input data.
Step 3
👉 Go to
SablierMerkleLockupDecoder
contract → Enter the input data to the relevant function → Copy the output (this is the CONSTUCTOR ARG for merkle lockup contract to verify).Step 4
Go to
v2-periphery
repo (you have to clone it and runbun i
first if you don't have it already).🐣 Load the variables into the shell:
👨🏻💻 Run the verification command:
You must change
src/SablierV2MerkleLL.sol:SablierV2MerkleLL
tosrc/SablierV2MerkleLT.sol:SablierV2MerkleLT
if you wish to verify a MerkleLT contract.That's all for today. Thank you for reading 💚
Beta Was this translation helpful? Give feedback.
All reactions