fix: rename tokens to lamports
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
} from '../src';
|
||||
import {mockRpcEnabled} from './__mocks__/node-fetch';
|
||||
import {url} from './url';
|
||||
import {newAccountWithTokens} from './new-account-with-tokens';
|
||||
import {newAccountWithLamports} from './new-account-with-lamports';
|
||||
|
||||
if (!mockRpcEnabled) {
|
||||
// The default of 5 seconds is too slow for live testing sometimes
|
||||
@@ -24,7 +24,7 @@ test('load BPF program', async () => {
|
||||
}
|
||||
|
||||
const connection = new Connection(url);
|
||||
const from = await newAccountWithTokens(connection, 1024);
|
||||
const from = await newAccountWithLamports(connection, 1024);
|
||||
const data = await fs.readFile('test/fixtures/noop/noop.so');
|
||||
const programId = await BpfLoader.load(connection, from, data);
|
||||
const transaction = new Transaction().add({
|
||||
|
Reference in New Issue
Block a user