Skip to content

Conversation

@solidsnakedev
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings December 16, 2025 23:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes all Node.js Buffer usage from the codebase and replaces it with the cross-platform Bytes utility module, improving browser compatibility.

  • Replaces Buffer.from(data, "hex") with Bytes.fromHex(data)
  • Replaces Buffer.from(data).toString("hex") with Bytes.toHex(data)
  • Adds necessary imports for the Bytes module in all affected files

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/evolution/src/sdk/provider/internal/Ogmios.ts Replaced Buffer.from().toString("hex") with Bytes.toHex() for datum hash conversion
packages/evolution/src/sdk/provider/internal/MaestroEffect.ts Replaced Buffer.from(hex) with Bytes.fromHex() for transaction CBOR conversion
packages/evolution/src/sdk/provider/internal/KupmiosEffects.ts Replaced Buffer.from(hex) with Bytes.fromHex() for datum hash and script bytes decoding
packages/evolution/src/sdk/builders/TxBuilderImpl.ts Replaced Buffer.from().toString("hex") with Bytes.toHex() for key hash hex conversion in fake witness set building
packages/evolution/src/core/Assets/index.ts Replaced Buffer.from(hex) with Bytes.fromHex() for policy ID and asset name decoding
.changeset/remove-buffer-usage.md Added changeset documentation describing the changes

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

@solidsnakedev solidsnakedev merged commit fe0757e into main Dec 17, 2025
9 of 11 checks passed
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.

2 participants