Skip to content

fix: Correct swapped PublicKey/PrivateKey types in ContractCall options - #1856

Merged
jannik-stacks merged 5 commits into
mainfrom
fix/contract-call-type-1767-1777
May 22, 2026
Merged

fix: Correct swapped PublicKey/PrivateKey types in ContractCall options#1856
jannik-stacks merged 5 commits into
mainfrom
fix/contract-call-type-1767-1777

Conversation

@jannik-stacks

Copy link
Copy Markdown
Collaborator

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the TypeScript option types for contract-call builders so that public/private key fields match their intended usage across the transactions package.

Changes:

  • Correct UnsignedContractCallOptions.publicKey to use PublicKey.
  • Correct SignedContractCallOptions.senderKey to use PrivateKey.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@jannik-stacks
jannik-stacks requested a review from a team May 22, 2026 11:02
@jannik-stacks
jannik-stacks merged commit e51d057 into main May 22, 2026
6 checks passed
@jannik-stacks
jannik-stacks deleted the fix/contract-call-type-1767-1777 branch May 22, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wrong Key type for publicKey option Typescript: type for public and private keys switched

4 participants