@@ -945,7 +945,7 @@ describe('SOL:', function () {
945945 'fee' ,
946946 'memo' ,
947947 ] ,
948- id : '335sxAuVj5ucXqVWW82QwpFLArPbdD3gXfXr4KrxkLkUpmLB3Nwz2G82z2TqiDD7mNAAbHkcAqD5ycDZp1vVKtjf ' ,
948+ id : '2ticU4ZkEqdTHULr6LobTgWBhim6E7wSscDhM4gzyuGUmQyUwLYhoqaifuvwmNzzEf1T5aefVcgMQkSHdJ5nsrfZ ' ,
949949 type : 'Send' ,
950950 changeOutputs : [ ] ,
951951 changeAmount : '0' ,
@@ -1883,30 +1883,31 @@ describe('SOL:', function () {
18831883 should . equal ( tokenTxnJson . numSignatures , testData . SolInputData . durableNonceSignatures ) ;
18841884
18851885 const instructionsData = tokenTxnJson . instructionsData as InstructionParams [ ] ;
1886- should . equal ( instructionsData . length , 3 ) ;
1886+ should . equal ( instructionsData . length , 4 ) ;
18871887 should . equal ( instructionsData [ 0 ] . type , 'NonceAdvance' ) ;
18881888
18891889 const destinationUSDTTokenAccount = await getAssociatedTokenAccountAddress (
18901890 usdtMintAddress ,
18911891 testData . keys . destinationPubKey
18921892 ) ;
1893- should . equal ( instructionsData [ 1 ] . type , 'CreateAssociatedTokenAccount' ) ;
1894- should . equal ( ( instructionsData [ 1 ] as AtaInit ) . params . mintAddress , usdtMintAddress ) ;
1895- should . equal ( ( instructionsData [ 1 ] as AtaInit ) . params . ataAddress , destinationUSDTTokenAccount ) ;
1896- should . equal ( ( instructionsData [ 1 ] as AtaInit ) . params . ownerAddress , testData . keys . destinationPubKey ) ;
1897- should . equal ( ( instructionsData [ 1 ] as AtaInit ) . params . tokenName , 'tsol:usdt' ) ;
1898- should . equal ( ( instructionsData [ 1 ] as AtaInit ) . params . payerAddress , testData . wrwUser . walletAddress0 ) ;
1893+ should . equal ( instructionsData [ 1 ] . type , 'SetPriorityFee' ) ;
1894+ should . equal ( instructionsData [ 2 ] . type , 'CreateAssociatedTokenAccount' ) ;
1895+ should . equal ( ( instructionsData [ 2 ] as AtaInit ) . params . mintAddress , usdtMintAddress ) ;
1896+ should . equal ( ( instructionsData [ 2 ] as AtaInit ) . params . ataAddress , destinationUSDTTokenAccount ) ;
1897+ should . equal ( ( instructionsData [ 2 ] as AtaInit ) . params . ownerAddress , testData . keys . destinationPubKey ) ;
1898+ should . equal ( ( instructionsData [ 2 ] as AtaInit ) . params . tokenName , 'tsol:usdt' ) ;
1899+ should . equal ( ( instructionsData [ 2 ] as AtaInit ) . params . payerAddress , testData . wrwUser . walletAddress0 ) ;
18991900
19001901 const sourceUSDTTokenAccount = await getAssociatedTokenAccountAddress (
19011902 usdtMintAddress ,
19021903 testData . wrwUser . walletAddress0
19031904 ) ;
1904- should . equal ( instructionsData [ 2 ] . type , 'TokenTransfer' ) ;
1905- should . equal ( ( instructionsData [ 2 ] as TokenTransfer ) . params . fromAddress , testData . wrwUser . walletAddress0 ) ;
1906- should . equal ( ( instructionsData [ 2 ] as TokenTransfer ) . params . toAddress , destinationUSDTTokenAccount ) ;
1907- should . equal ( ( instructionsData [ 2 ] as TokenTransfer ) . params . amount , '2000000000' ) ;
1908- should . equal ( ( instructionsData [ 2 ] as TokenTransfer ) . params . tokenName , 'tsol:usdt' ) ;
1909- should . equal ( ( instructionsData [ 2 ] as TokenTransfer ) . params . sourceAddress , sourceUSDTTokenAccount ) ;
1905+ should . equal ( instructionsData [ 3 ] . type , 'TokenTransfer' ) ;
1906+ should . equal ( ( instructionsData [ 3 ] as TokenTransfer ) . params . fromAddress , testData . wrwUser . walletAddress0 ) ;
1907+ should . equal ( ( instructionsData [ 3 ] as TokenTransfer ) . params . toAddress , destinationUSDTTokenAccount ) ;
1908+ should . equal ( ( instructionsData [ 3 ] as TokenTransfer ) . params . amount , '2000000000' ) ;
1909+ should . equal ( ( instructionsData [ 3 ] as TokenTransfer ) . params . tokenName , 'tsol:usdt' ) ;
1910+ should . equal ( ( instructionsData [ 3 ] as TokenTransfer ) . params . sourceAddress , sourceUSDTTokenAccount ) ;
19101911
19111912 const solCoin = basecoin as any ;
19121913 sandBox . assert . callCount ( solCoin . getDataFromNode , 7 ) ;
@@ -1940,7 +1941,7 @@ describe('SOL:', function () {
19401941 should . equal ( tokenTxnJson . numSignatures , testData . SolInputData . durableNonceSignatures ) ;
19411942
19421943 const instructionsData = tokenTxnJson . instructionsData as TokenTransfer [ ] ;
1943- should . equal ( instructionsData . length , 2 ) ;
1944+ should . equal ( instructionsData . length , 3 ) ;
19441945 should . equal ( instructionsData [ 0 ] . type , 'NonceAdvance' ) ;
19451946
19461947 const sourceUSDTTokenAccount = await getAssociatedTokenAccountAddress (
@@ -1951,12 +1952,13 @@ describe('SOL:', function () {
19511952 usdtMintAddress ,
19521953 testData . keys . destinationPubKey2
19531954 ) ;
1954- should . equal ( instructionsData [ 1 ] . type , 'TokenTransfer' ) ;
1955- should . equal ( instructionsData [ 1 ] . params . fromAddress , testData . wrwUser . walletAddress0 ) ;
1956- should . equal ( instructionsData [ 1 ] . params . toAddress , destinationUSDTTokenAccount ) ;
1957- should . equal ( instructionsData [ 1 ] . params . amount , '2000000000' ) ;
1958- should . equal ( instructionsData [ 1 ] . params . tokenName , 'tsol:usdt' ) ;
1959- should . equal ( instructionsData [ 1 ] . params . sourceAddress , sourceUSDTTokenAccount ) ;
1955+ should . equal ( instructionsData [ 1 ] . type , 'SetPriorityFee' ) ;
1956+ should . equal ( instructionsData [ 2 ] . type , 'TokenTransfer' ) ;
1957+ should . equal ( instructionsData [ 2 ] . params . fromAddress , testData . wrwUser . walletAddress0 ) ;
1958+ should . equal ( instructionsData [ 2 ] . params . toAddress , destinationUSDTTokenAccount ) ;
1959+ should . equal ( instructionsData [ 2 ] . params . amount , '2000000000' ) ;
1960+ should . equal ( instructionsData [ 2 ] . params . tokenName , 'tsol:usdt' ) ;
1961+ should . equal ( instructionsData [ 2 ] . params . sourceAddress , sourceUSDTTokenAccount ) ;
19601962
19611963 const solCoin = basecoin as any ;
19621964 sandBox . assert . callCount ( solCoin . getDataFromNode , 7 ) ;
0 commit comments