@streamflow/distributor 11.0.0-alpha.p334.ea83918 → 11.0.0
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.
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/solana/index.cjs +1 -1
- package/dist/cjs/solana/index.cjs.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/solana/index.js +1 -1
- package/dist/esm/solana/index.js.map +1 -1
- package/package.json +4 -4
package/dist/cjs/index.cjs
CHANGED
|
@@ -4931,7 +4931,7 @@ var SolanaAlignedDistributorClient = class extends BaseDistributorClient {
|
|
|
4931
4931
|
async getNewDistributorInstruction(data, accounts) {
|
|
4932
4932
|
const { mint, clawbackReceiver, tokenProgram, admin } = accounts;
|
|
4933
4933
|
const distributorKey = getDistributorPda(this.merkleDistributorProgram.programId, common.pk(accounts.mint), data.version);
|
|
4934
|
-
const tokenVaultKey = splToken.getAssociatedTokenAddressSync(common.pk(mint),
|
|
4934
|
+
const tokenVaultKey = splToken.getAssociatedTokenAddressSync(common.pk(mint), distributorKey, true, common.pk(tokenProgram));
|
|
4935
4935
|
this.validateDistributorArgs(data);
|
|
4936
4936
|
const alignedArgs = this.getNewAlignedDistributorArgs(data);
|
|
4937
4937
|
const oracle = data.oracleAddress ? new web3_js.PublicKey(data.oracleAddress) : getTestOraclePda(this.alignedProxyProgram.programId, common.pk(mint), common.pk(admin));
|