token-swap: Remove tokenSwapAccount as signer (#462)

This commit is contained in:
Jon Cinque 2020-09-17 16:00:23 +02:00 committed by GitHub
parent 84cf55e9ae
commit 9edf7304d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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;