feat: add commitment param to subscription apis

This commit is contained in:
Justin Starry
2020-05-21 12:17:38 +08:00
committed by Michael Vines
parent 803910bf08
commit 722adb66c2
4 changed files with 35 additions and 4 deletions

View File

@ -1840,6 +1840,7 @@ test('account change notification', async () => {
const subscriptionId = connection.onAccountChange(
programAccount.publicKey,
mockCallback,
'recent',
);
const balanceNeeded = Math.max(