fix: deprecate getTotalSupply
This commit is contained in:
committed by
Tyera Eulberg
parent
fe4c39a26a
commit
a4474f1d94
@ -492,9 +492,15 @@ describe('Connection', () => {
|
||||
|
||||
it('get total supply', async () => {
|
||||
await mockRpcResponse({
|
||||
method: 'getTotalSupply',
|
||||
method: 'getSupply',
|
||||
params: [],
|
||||
value: 1000000,
|
||||
value: {
|
||||
total: 1000000,
|
||||
circulating: 100000,
|
||||
nonCirculating: 900000,
|
||||
nonCirculatingAccounts: [new Account().publicKey.toBase58()],
|
||||
},
|
||||
withContext: true,
|
||||
});
|
||||
|
||||
const count = await connection.getTotalSupply();
|
||||
|
Reference in New Issue
Block a user