fix: default transaction fee is now 1 (was 0)
This commit is contained in:
@ -24,7 +24,7 @@ test('load BPF program', async () => {
|
||||
}
|
||||
|
||||
const connection = new Connection(url);
|
||||
const from = await newAccountWithTokens(connection);
|
||||
const from = await newAccountWithTokens(connection, 1024);
|
||||
const data = await fs.readFile('test/fixtures/noop/noop.o');
|
||||
const programId = await BpfLoader.load(connection, from, data);
|
||||
const transaction = new Transaction().add({
|
||||
|
@ -353,6 +353,7 @@ test('transaction', async () => {
|
||||
accountTo.publicKey,
|
||||
10,
|
||||
);
|
||||
transaction.fee = 0;
|
||||
const signature = await connection.sendTransaction(transaction, accountFrom);
|
||||
|
||||
mockRpc.push([
|
||||
@ -447,7 +448,7 @@ test('multi-instruction transaction', async () => {
|
||||
accountTo.publicKey,
|
||||
10,
|
||||
).add(SystemProgram.move(accountTo.publicKey, accountFrom.publicKey, 10));
|
||||
|
||||
transaction.fee = 0;
|
||||
const signature = await connection.sendTransaction(
|
||||
transaction,
|
||||
accountFrom,
|
||||
@ -496,6 +497,7 @@ test('account change notification', async () => {
|
||||
3,
|
||||
BpfLoader.programId,
|
||||
);
|
||||
transaction.fee = 0;
|
||||
await sendAndConfirmTransaction(connection, transaction, owner);
|
||||
|
||||
const loader = new Loader(connection, BpfLoader.programId);
|
||||
|
@ -22,7 +22,7 @@ test('load native program', async () => {
|
||||
}
|
||||
|
||||
const connection = new Connection(url);
|
||||
const from = await newAccountWithTokens(connection);
|
||||
const from = await newAccountWithTokens(connection, 1024);
|
||||
const programId = await NativeLoader.load(connection, from, 'noop');
|
||||
const transaction = new Transaction().add({
|
||||
keys: [from.publicKey],
|
||||
|
@ -50,7 +50,7 @@ test('create new token', async () => {
|
||||
const connection = new Connection(url);
|
||||
connection._disableLastIdCaching = mockRpcEnabled;
|
||||
|
||||
initialOwner = await newAccountWithTokens(connection);
|
||||
initialOwner = await newAccountWithTokens(connection, 1024);
|
||||
|
||||
{
|
||||
// mock SystemProgram.createAccount transaction for Token.createNewToken()
|
||||
|
Reference in New Issue
Block a user