Skip to content

Replace Buffer with Uint8Array #49

@xcaptain

Description

@xcaptain

I'm developing a dapp using sveltekit + tonconnectui, I have to install the vite-plugin-node-polyfills package to fix the Fix Buffer is not defined error, because @ton/core uses Buffer which is a nodejs only type. I hope you can replace it with Uint8Array so we can better use it in browser.

An example can be found at: https://github.com/ton-org/ton-core/blob/main/src/boc/BitString.ts#L17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions