Skip to content

Commit d80c5b1

Browse files
committed
Add info tooltip for build-info
1 parent d9c1faa commit d80c5b1

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

app/components/verification/VerificationMethodSelector.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Tooltip as ReactTooltip } from "react-tooltip";
22
import { useState, useEffect } from "react";
3+
import { MdInfo } from "react-icons/md";
34
import { verificationMethods, frameworkMethods, frameworkMessages } from "../../data/verificationMethods";
45
import type { Language, SelectedMethod } from "../../types/verification";
56
import VerificationWarning from "./VerificationWarning";
@@ -148,7 +149,18 @@ export default function VerificationMethodSelector({
148149
}`}></div>
149150
</div>
150151
</label>
151-
<span className="text-sm text-gray-700">Upload build-info file</span>
152+
<span className="text-sm text-gray-700 flex items-center gap-1">
153+
Upload build-info file
154+
<button
155+
type="button"
156+
data-tooltip-id="build-info-tooltip"
157+
data-tooltip-content="Build-info files are saved compilation outputs from Hardhat and Foundry. While it's recommended to use the framework commands directly for verification, you can also upload these files. Find them in artifacts/build-info (Hardhat) or out/build-info (Foundry)."
158+
className="text-gray-500 hover:text-gray-700 transition-colors duration-200"
159+
>
160+
<MdInfo size={16} />
161+
</button>
162+
<ReactTooltip id="build-info-tooltip" place="top" style={{ maxWidth: '300px' }} />
163+
</span>
152164
</div>
153165
)}
154166

0 commit comments

Comments
 (0)