fix: add api for getMinimumBalanceForRentExemption
This commit is contained in:
committed by
Michael Vines
parent
432345b4d4
commit
4ae90c2944
@ -330,6 +330,25 @@ test('get total supply', async () => {
|
||||
expect(count).toBeGreaterThanOrEqual(0);
|
||||
});
|
||||
|
||||
test('get minimum balance for rent exemption', async () => {
|
||||
const connection = new Connection(url);
|
||||
|
||||
mockRpc.push([
|
||||
url,
|
||||
{
|
||||
method: 'getMinimumBalanceForRentExemption',
|
||||
params: [512],
|
||||
},
|
||||
{
|
||||
error: null,
|
||||
result: 1000000,
|
||||
},
|
||||
]);
|
||||
|
||||
const count = await connection.getMinimumBalanceForRentExemption(512);
|
||||
expect(count).toBeGreaterThanOrEqual(0);
|
||||
});
|
||||
|
||||
test('get recent blockhash', async () => {
|
||||
const connection = new Connection(url);
|
||||
|
||||
|
Reference in New Issue
Block a user