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

@ -22,7 +22,7 @@ const expectedData = (authorizedPubkey: PublicKey): string => {
const mockNonce = new Account();
mockNonce.publicKey.toBuffer().copy(expectedData, 40); // Hash, 32 bytes
expectedData.writeUInt16LE(5000, 72); // feeCalculator, 8 bytes
return bs58.encode(expectedData);
return expectedData.toString('base64');
};
test('create and query nonce account', async () => {