File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,12 @@ export const getUpdateAuthorityTransaction = async (input: {
8686} ) : Promise <
8787 FullTransaction < TransactionVersion , TransactionMessageWithFeePayer >
8888> => {
89- const instructions = getUpdateAuthorityInstructions ( input ) ;
89+ const instructions = getUpdateAuthorityInstructions ( {
90+ mint : input . mint ,
91+ role : input . role ,
92+ currentAuthority : input . currentAuthority ,
93+ newAuthority : input . newAuthority ,
94+ } ) ;
9095 const { value : latestBlockhash } = await input . rpc
9196 . getLatestBlockhash ( )
9297 . send ( ) ;
Original file line number Diff line number Diff line change @@ -20,10 +20,9 @@ export const transactionToB58 = (
2020 TransactionMessageWithFeePayer ,
2121 TransactionMessageWithBlockhashLifetime
2222 >
23- ) => {
23+ ) : string => {
2424 const compiledTransaction = compileTransaction ( transaction ) ;
25- const base58Decoder = getBase58Decoder ( ) ;
26- return base58Decoder . decode ( compiledTransaction . messageBytes ) ;
25+ return getBase58Decoder ( ) . decode ( compiledTransaction . messageBytes ) ;
2726} ;
2827
2928/**
@@ -40,8 +39,7 @@ export const transactionToB64 = (
4039 TransactionMessageWithFeePayer ,
4140 TransactionMessageWithBlockhashLifetime
4241 >
43- ) => {
42+ ) : string => {
4443 const compiledTransaction = compileTransaction ( transaction ) ;
45- const base64Decoder = getBase64Decoder ( ) ;
46- return base64Decoder . decode ( compiledTransaction . messageBytes ) ;
44+ return getBase64Decoder ( ) . decode ( compiledTransaction . messageBytes ) ;
4745} ;
You can’t perform that action at this time.
0 commit comments