phygital-token-sdk 0.18.0 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  import { getAddressEncoder, getBase64Decoder, getBase64Encoder, } from "@solana/kit";
2
2
  import { getAssetDecoder, PHYGITAL_TOKEN_PROGRAM_ADDRESS, } from "../generated/index.js";
3
3
  import { parseSecp256r1Pubkey } from "../instructions/initialize.js";
4
- const ASSET_ACCOUNT_DATA_SIZE = 116;
4
+ const ASSET_ACCOUNT_DATA_SIZE = 112;
5
5
  const ASSET_OWNER_OFFSET = 9;
6
- const ASSET_IDENTIFIER_OFFSET = 83;
6
+ const ASSET_IDENTIFIER_OFFSET = 79;
7
7
  export async function fetchAssetByIdentifier(rpc, identifier) {
8
8
  const parsed = typeof identifier === "string"
9
9
  ? parseSecp256r1Pubkey(identifier)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phygital-token-sdk",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "description": "TypeScript client for the Phygital Token Solana program (generated via Codama)",
5
5
  "license": "ISC",
6
6
  "type": "module",