Skip to content

fix: borsh reconstruction#1886

Merged
gagdiez merged 4 commits into
masterfrom
fix-borsh-reconstruction
Mar 7, 2026
Merged

fix: borsh reconstruction#1886
gagdiez merged 4 commits into
masterfrom
fix-borsh-reconstruction

Conversation

@gagdiez

@gagdiez gagdiez commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

When borsh deserializes a transaction, it returns the public key as a plain object. This makes that, if you serialize the transaction, then deserialize it, you will see an object that respects the public key interface, but does NOT implement its methods, causing problems down the line

Pre-flight checklist

  • I have read the Contributing Guidelines on pull requests.
  • Commit messages follow the conventional commits spec
  • If this is a code change: I have written unit tests.
  • If this changes code in a published package: I have run pnpm changeset to create a changeset JSON document appropriate for this change.
  • If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

When borsh deserializes a transaction, it returns the public key as
a plain object. This makes that, if you serialize the transaction,
then deserialize it, you will see an object that respects the
public key interface, but does NOT implement its methods, causing
problems down the line
@changeset-bot

changeset-bot Bot commented Mar 5, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e66ad60

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

This PR includes changesets to release 1 package
Name Type
near-api-js 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

@gagdiez gagdiez enabled auto-merge March 5, 2026 19:00
@gagdiez gagdiez merged commit fa79039 into master Mar 7, 2026
3 checks passed
@gagdiez gagdiez deleted the fix-borsh-reconstruction branch March 7, 2026 16:16
@github-project-automation github-project-automation Bot moved this from NEW❗ to Shipped 🚀 in DevTools Mar 7, 2026
@github-actions github-actions Bot mentioned this pull request Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Shipped 🚀

Development

Successfully merging this pull request may close these issues.

3 participants