fix: avoid double spend in sendAndConfirmTransaction

This commit is contained in:
Justin Starry
2020-06-15 18:32:57 +08:00
committed by Justin Starry
parent d77818c18b
commit f31f66a7c3
5 changed files with 53 additions and 44 deletions

View File

@@ -210,7 +210,9 @@ export class Transaction {
let numReadonlySignedAccounts = 0;
let numReadonlyUnsignedAccounts = 0;
const accountKeys = this.signatures.map(({publicKey}) => publicKey.toString());
const accountKeys = this.signatures.map(({publicKey}) =>
publicKey.toString(),
);
const programIds: string[] = [];
const accountMetas: AccountMeta[] = [];
this.instructions.forEach(instruction => {