fix: use base64 encoding by default for account data

This commit is contained in:
Justin Starry
2020-08-10 16:26:48 +08:00
committed by Justin Starry
parent 88ca04dbdb
commit 97e53f867f
3 changed files with 48 additions and 40 deletions

View File

@ -63,7 +63,7 @@ test('get account info - not found', async () => {
url,
{
method: 'getAccountInfo',
params: [account.publicKey.toBase58()],
params: [account.publicKey.toBase58(), {encoding: 'binary64'}],
},
{
error: null,
@ -253,7 +253,10 @@ test('get program accounts', async () => {
url,
{
method: 'getProgramAccounts',
params: [programId.publicKey.toBase58(), {commitment: 'recent'}],
params: [
programId.publicKey.toBase58(),
{commitment: 'recent', encoding: 'binary64'},
],
},
{
error: null,
@ -1659,7 +1662,10 @@ test('request airdrop', async () => {
url,
{
method: 'getAccountInfo',
params: [account.publicKey.toBase58(), {commitment: 'recent'}],
params: [
account.publicKey.toBase58(),
{commitment: 'recent', encoding: 'binary64'},
],
},
{
error: null,