From d4d17b5d6fa4b33b3db77927f48a578ad8063f74 Mon Sep 17 00:00:00 2001 From: notV4l Date: Fri, 20 Oct 2023 15:18:16 +0200 Subject: [PATCH 1/2] fix getEntityIdFromKeys --- packages/utils/src/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/utils/src/utils/index.ts b/packages/utils/src/utils/index.ts index 1e73d122..a5b7dfe0 100644 --- a/packages/utils/src/utils/index.ts +++ b/packages/utils/src/utils/index.ts @@ -136,7 +136,7 @@ export function getEntityIdFromKeys(keys: bigint[]): Entity { return "0x" + keys[0].toString(16) as Entity; } // calculate the poseidon hash of the keys - let poseidon = poseidonHashMany([BigInt(keys.length), ...keys]); + let poseidon = poseidonHashMany(keys); return "0x" + poseidon.toString(16) as Entity; } From be8c00b69ec6146e8b212c1d016e800c0f2cc08b Mon Sep 17 00:00:00 2001 From: notV4l Date: Fri, 20 Oct 2023 15:20:12 +0200 Subject: [PATCH 2/2] bump v --- packages/core/package.json | 2 +- packages/create-burner/package.json | 2 +- packages/utils/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index 8d99823d..c6293758 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@dojoengine/core", - "version": "0.1.29", + "version": "0.1.30", "description": "Dojo engine core providers and types", "type": "module", "scripts": { diff --git a/packages/create-burner/package.json b/packages/create-burner/package.json index 31577ece..6213b64a 100644 --- a/packages/create-burner/package.json +++ b/packages/create-burner/package.json @@ -1,6 +1,6 @@ { "name": "@dojoengine/create-burner", - "version": "0.1.29", + "version": "0.1.30", "description": "Useful hooks and functions to create a Starknet burner wallet", "source": "src/index.ts", "main": "dist/index.js", diff --git a/packages/utils/package.json b/packages/utils/package.json index 4bec9239..16b35d8e 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@dojoengine/utils", - "version": "0.1.29", + "version": "0.1.30", "description": "Helpful Dojo Utils", "type": "module", "scripts": {