Skip to content

Commit

Permalink
🐛 Fix world Pda derivation (#10)
Browse files Browse the repository at this point in the history
* 🐛 Fix world Pda derivation

* ♻️ Code refactor

* ♻️ Code Refactoring
  • Loading branch information
GabrielePicco authored Jan 20, 2024
1 parent 403a395 commit e329b00
Show file tree
Hide file tree
Showing 6 changed files with 2,634 additions and 21 deletions.
2 changes: 1 addition & 1 deletion clients/bolt-sdk/lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/bolt-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bolt-sdk",
"version": "0.0.8",
"version": "0.0.9",
"description": "Bolt typescript SDK",
"author": "[email protected]",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion clients/bolt-sdk/src/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function FindWorldPda(
programId: PublicKey = new PublicKey(PROGRAM_ID)
) {
return PublicKey.findProgramAddressSync(
[Buffer.from("world"), id.toBuffer("le", 8)],
[Buffer.from("world"), id.toBuffer("be", 8)],
programId
)[0];
}
Expand Down
Loading

0 comments on commit e329b00

Please sign in to comment.