token-swap: Remove tokenSwapAccount as signer (#462)
This commit is contained in:
parent
84cf55e9ae
commit
9edf7304d2
|
@ -211,7 +211,7 @@ export class TokenSwap {
|
|||
);
|
||||
|
||||
let keys = [
|
||||
{pubkey: tokenSwapAccount.publicKey, isSigner: true, isWritable: true},
|
||||
{pubkey: tokenSwapAccount.publicKey, isSigner: false, isWritable: true},
|
||||
{pubkey: authority, isSigner: false, isWritable: false},
|
||||
{pubkey: tokenAccountA, isSigner: false, isWritable: false},
|
||||
{pubkey: tokenAccountB, isSigner: false, isWritable: false},
|
||||
|
@ -248,7 +248,6 @@ export class TokenSwap {
|
|||
connection,
|
||||
transaction,
|
||||
payer,
|
||||
tokenSwapAccount
|
||||
);
|
||||
|
||||
return tokenSwap;
|
||||
|
|
Loading…
Reference in New Issue