Skip to content

Commit 36b97e0

Browse files
committed
okay ellipses
1 parent d28637c commit 36b97e0

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

packages/sdk/src/administration/updateAuthority.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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();

packages/sdk/src/transactionUtil.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)