Skip to content

[SDK] Fix: checkVerificationStatus appends a quote to the API key - #9050

Open
aelmanaa wants to merge 1 commit into
thirdweb-dev:mainfrom
aelmanaa:sdk/fix-verify-status-apikey
Open

aelmanaa wants to merge 1 commit into
thirdweb-dev:mainfrom
aelmanaa:sdk/fix-verify-status-apikey

Conversation

@aelmanaa

@aelmanaa aelmanaa commented Nov 2, 2026 •

Copy link
Copy Markdown

Removes a stray double quote that checkVerificationStatus appended to the API key in its request URL.

  • Drop the trailing " from the checkverifystatus URL in packages/thirdweb/src/contract/verification/index.ts.
  • Add index.test.ts, which intercepts the request with MSW and asserts that the apikey query parameter equals the key passed in. It fails before the fix (TEST_API_KEY") and passes after.
  • Add a patch changeset for thirdweb.

Fixes #9049

Summary by CodeRabbit

  • Bug Fixes
    • Fixed verification status requests so the explorer API key is sent correctly, allowing the status response to be retrieved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aelmanaa
aelmanaa requested review from a team as code owners November 2, 2026 16:06
@changeset-bot

changeset-bot Bot commented Nov 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6a8f1cc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
thirdweb Patch
@thirdweb-dev/wagmi-adapter Patch
wagmi-inapp Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Nov 2, 2026

Copy link
Copy Markdown

@aelmanaa is attempting to deploy a commit to the thirdweb Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added packages SDK Involves changes to the thirdweb SDK labels Nov 2, 2026
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2b268bd5-ff9d-483e-93d1-36415ca7f521
Commits

Reviewing files that changed from the base of the PR and between 940b374 and 6a8f1cc.

Files selected for processing: 3
  • .changeset/verify-status-apikey-quote.md
  • packages/thirdweb/src/contract/verification/index.test.ts
  • packages/thirdweb/src/contract/verification/index.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Walkthrough

checkVerificationStatus no longer appends a trailing double quote to the explorer API key. An MSW-backed test checks the query parameter and response. A patch changeset records the fix.

Changes

Verification status API key fix

Layer / File(s) Summary
Correct the status request and verify its API key
packages/thirdweb/src/contract/verification/index.ts, packages/thirdweb/src/contract/verification/index.test.ts, .changeset/verify-status-apikey-quote.md
The status request no longer adds a trailing double quote to the API key. The test checks the API key query parameter and returned response. The changeset records a patch release.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested labels: packages, SDK

Suggested reviewers: 0xfirekeeper

Merge Risk: Minimal · up to 6a8f1

The status request no longer appends a quote to the API key. No merge-blocking impact is apparent.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly identifies the affected function and the trailing quote bug addressed by the pull request.
Description check Passed The description explains the bug, implementation change, test coverage, changeset, and linked issue. It does not use explicit template headings such as "Notes for the reviewer" or "How to test," but i…
Linked Issues check Passed [#9049] The sole coding requirement is to remove the trailing double quote from the checkverifystatus request URL in checkVerificationStatus. The diff from merge base 940b374 to head 6a8f1cc changes i…
Out of Scope Changes check Passed All three changed files connect to #9049. (1) packages/thirdweb/src/contract/verification/index.ts: the one-line change removes the stray quote, which is the requested fix. (2) packages/thirdweb/src/c…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Full details: Description check

Explanation

The description explains the bug, implementation change, test coverage, changeset, and linked issue. It does not use explicit template headings such as "Notes for the reviewer" or "How to test," but it includes the required information and is mostly complete.

Full details: Linked Issues check

Explanation

[#9049] The sole coding requirement is to remove the trailing double quote from the checkverifystatus request URL in checkVerificationStatus. The diff from merge base 940b374 to head 6a8f1cc changes index.ts line 212 by removing the trailing " after ${options.explorerApiKey}. The endpoint now ends with apikey=${options.explorerApiKey}. The issue's requested test is also present. index.test.ts uses MSW to intercept the checkverifystatus request and asserts that searchParams.get("apikey") equals TEST_API_KEY. Before the fix, this assertion would receive TEST_API_KEY" and fail, as the issue describes. The test runs with the 3000 ms polling interval inside a 10 s test timeout, so the first poll and assertion complete in time. No non-coding requirements exist in the issue.

Full details: Out of Scope Changes check

Explanation

All three changed files connect to #9049. (1) packages/thirdweb/src/contract/verification/index.ts: the one-line change removes the stray quote, which is the requested fix. (2) packages/thirdweb/src/contract/verification/index.test.ts: a new Vitest/MSW regression test for the apikey query parameter. It supports the fix and is an expected test artifact. The test also checks the returned response fields, which covers the same function and does not add unrelated behavior. (3) .changeset/verify-status-apikey-quote.md: a patch changeset for thirdweb, which is release metadata for the same fix. No unrelated behavior, refactoring, or other API changes were found in the reviewed diff.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 2 files. (1 skipped: 1 unsupported.)

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SDK] checkVerificationStatus sends the API key with a trailing double quote

1 participant