fix: default transaction fee is now 1 (was 0)

This commit is contained in:
Michael Vines
2018-11-27 08:31:06 -08:00
parent 916a5eb3d2
commit b175a53f4b
9 changed files with 20 additions and 9 deletions

View File

@ -240,6 +240,7 @@ export class Token {
programId,
userdata,
});
transaction.fee = 0; // TODO: Batch with the `SystemProgram.createAccount` and remove this line
await sendAndConfirmTransaction(connection, transaction, tokenAccount);
return [token, initialAccountPublicKey];
@ -294,7 +295,7 @@ export class Token {
programId: this.programId,
userdata,
});
transaction.fee = 0; // TODO: Batch with the `SystemProgram.createAccount` and remove this line
await sendAndConfirmTransaction(this.connection, transaction, tokenAccount);
return tokenAccount.publicKey;