Skip to content

Commit

Permalink
Merge pull request #29 from dojoengine/fix_utils
Browse files Browse the repository at this point in the history
Fix utils getEntityIdFromKeys
  • Loading branch information
notV4l authored Oct 20, 2023
2 parents 7ba2291 + be8c00b commit e5e17e9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-burner/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dojoengine/utils",
"version": "0.1.29",
"version": "0.1.30",
"description": "Helpful Dojo Utils",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e5e17e9

Please sign in to comment.