diff --git a/clients/js-legacy/package.json b/clients/js-legacy/package.json index a925065..e08a555 100644 --- a/clients/js-legacy/package.json +++ b/clients/js-legacy/package.json @@ -49,7 +49,8 @@ "@solana/web3.js": "^1.95.5" }, "dependencies": { - "@solana/codecs": "8.6.0" + "@solana/codecs": "8.6.0", + "buffer": "^6.0.3" }, "devDependencies": { "@solana/spl-type-length-value": "0.2.0", diff --git a/clients/js-legacy/src/instruction.ts b/clients/js-legacy/src/instruction.ts index b51dd03..14a9dfb 100644 --- a/clients/js-legacy/src/instruction.ts +++ b/clients/js-legacy/src/instruction.ts @@ -1,3 +1,4 @@ +import { Buffer } from 'buffer'; import type { Encoder } from '@solana/codecs'; import type { PublicKey } from '@solana/web3.js'; import { diff --git a/clients/js-legacy/src/state/tokenGroup.ts b/clients/js-legacy/src/state/tokenGroup.ts index c0895e2..19e9713 100644 --- a/clients/js-legacy/src/state/tokenGroup.ts +++ b/clients/js-legacy/src/state/tokenGroup.ts @@ -1,3 +1,4 @@ +import type { Buffer } from 'buffer'; import { PublicKey } from '@solana/web3.js'; import type { ReadonlyUint8Array } from '@solana/codecs'; import { fixCodecSize, getBytesCodec, getStructCodec, getU64Codec } from '@solana/codecs'; diff --git a/clients/js-legacy/src/state/tokenGroupMember.ts b/clients/js-legacy/src/state/tokenGroupMember.ts index c952c4f..399a9b9 100644 --- a/clients/js-legacy/src/state/tokenGroupMember.ts +++ b/clients/js-legacy/src/state/tokenGroupMember.ts @@ -1,3 +1,4 @@ +import type { Buffer } from 'buffer'; import { PublicKey } from '@solana/web3.js'; import type { ReadonlyUint8Array } from '@solana/codecs'; import { fixCodecSize, getBytesCodec, getStructCodec, getU64Codec } from '@solana/codecs';