Skip to content

Commit 2d4651e

Browse files
Merge pull request #358 from streamflow-finance/fix/derivestreammetadatapda
fix: deriveStreamMetadataPDA to use bigendian nonce
2 parents 8e20b61 + e063a1a commit 2d4651e

8 files changed

Lines changed: 9 additions & 9 deletions

File tree

lerna.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"packages": [
33
"packages/*"
44
],
5-
"version": "12.1.0",
5+
"version": "12.1.1",
66
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
77
"command": {
88
"run": {
99
"topological": true
1010
}
1111
}
12-
}
12+
}

packages/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@streamflow/common",
3-
"version": "12.1.0",
3+
"version": "12.1.1",
44
"description": "Common utilities and types used by streamflow packages.",
55
"homepage": "https://github.com/streamflow-finance/js-sdk/",
66
"type": "module",

packages/distributor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@streamflow/distributor",
3-
"version": "12.1.0",
3+
"version": "12.1.1",
44
"description": "JavaScript SDK to interact with Streamflow Airdrop protocol.",
55
"homepage": "https://github.com/streamflow-finance/js-sdk/",
66
"main": "./dist/cjs/index.cjs",

packages/eslint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@streamflow/eslint-config",
3-
"version": "12.1.0",
3+
"version": "12.1.1",
44
"description": "ESLint configuration for Streamflow protocol.",
55
"homepage": "https://github.com/streamflow-finance/js-sdk/",
66
"engines": {

packages/launchpad/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@streamflow/launchpad",
3-
"version": "12.1.0",
3+
"version": "12.1.1",
44
"description": "JavaScript SDK to interact with Streamflow Launchpad protocol.",
55
"homepage": "https://github.com/streamflow-finance/js-sdk/",
66
"main": "./dist/cjs/index.cjs",

packages/staking/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@streamflow/staking",
3-
"version": "12.1.0",
3+
"version": "12.1.1",
44
"description": "JavaScript SDK to interact with Streamflow Staking protocol.",
55
"homepage": "https://github.com/streamflow-finance/js-sdk/",
66
"main": "./dist/cjs/index.cjs",

packages/stream/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@streamflow/stream",
3-
"version": "12.1.0",
3+
"version": "12.1.1",
44
"description": "JavaScript SDK to interact with Streamflow protocol.",
55
"homepage": "https://github.com/streamflow-finance/js-sdk/",
66
"main": "./dist/cjs/index.cjs",

packages/stream/solana/lib/derive-accounts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const deriveStreamMetadataPDA = (
2929
nonce: number,
3030
): PublicKey => {
3131
return PublicKey.findProgramAddressSync(
32-
[METADATA_SEED, mint.toBuffer(), sender.toBuffer(), new BN(nonce).toArrayLike(Buffer, "le", 4)],
32+
[METADATA_SEED, mint.toBuffer(), sender.toBuffer(), new BN(nonce).toArrayLike(Buffer, "be", 4)],
3333
programId,
3434
)[0];
3535
};

0 commit comments

Comments
 (0)