File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @tensor-hq/tensor-common" ,
3- "version" : " 8.3.1 " ,
3+ "version" : " 8.3.2 " ,
44 "description" : " Common utility methods used by Tensor." ,
55 "sideEffects" : false ,
66 "module" : " ./dist/esm/index.js" ,
Original file line number Diff line number Diff line change 1- import { PublicKey } from '@solana/web3.js' ;
21import { utils } from '@coral-xyz/anchor' ;
2+ import { PublicKey , SystemProgram } from '@solana/web3.js' ;
33
44export const WNS_PROGRAM_ID = new PublicKey (
55 'wns1gDLt8fgLcGhWi5MqAqgXpwEP1JftKE9eZnXS1HM' ,
@@ -50,9 +50,15 @@ export const findWNSExtraMetasPda = (mint: string) => {
5050 return extraMetasAccount ;
5151} ;
5252
53- export const findWNSDistributionPda = ( collection : string ) => {
53+ export const findWNSDistributionPda = (
54+ collection : string ,
55+ paymentMint ?: PublicKey ,
56+ ) => {
5457 const [ distributionAccount ] = PublicKey . findProgramAddressSync (
55- [ new PublicKey ( collection ) . toBuffer ( ) ] ,
58+ [
59+ new PublicKey ( collection ) . toBuffer ( ) ,
60+ paymentMint ? paymentMint . toBuffer ( ) : SystemProgram . programId . toBuffer ( ) ,
61+ ] ,
5662 WNS_DIST_PROGRAM_ID ,
5763 ) ;
5864
Original file line number Diff line number Diff line change 1+ import { Connection } from '@solana/web3.js' ;
12import { expect } from 'chai' ;
23import {
34 RetryTxSender ,
45 convertTxToLegacy ,
56} from '../../src/solana_contrib/transaction' ;
6- import { Connection } from '@solana/web3.js' ;
77
88describe ( 'Transaction Tests' , ( ) => {
99 describe ( 'convertTxToLegacy' , ( ) => {
@@ -58,7 +58,7 @@ describe('Transaction Tests', () => {
5858 err : null ,
5959 } ;
6060 expect ( confirmedTx ) . to . deep . equal ( expected ) ;
61- } ) . timeout ( 10000 ) ;
61+ } ) . timeout ( 15000 ) ;
6262
6363 it ( 'should cancel confirmation when cancelConfirm is called' , async ( ) => {
6464 const nonExistentTxSig =
You can’t perform that action at this time.
0 commit comments