Skip to content
Snippets Groups Projects
Commit 60784255 authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Added basic test for IWaxBaseInterface.convertRawPrivateKeyToWif method

parent 1aa8d3b0
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !282. Comments created here will be created in the context of that merge request.
...@@ -840,6 +840,14 @@ test.describe('Wax object interface foundation tests', () => { ...@@ -840,6 +840,14 @@ test.describe('Wax object interface foundation tests', () => {
expect(retVal.wifPrivateKey).toHaveLength(51); expect(retVal.wifPrivateKey).toHaveLength(51);
}); });
test('Should be able to convert between raw private key -> WIF formats', async ({ waxTest }) => {
const retVal = await waxTest(async({ base }) => {
return base.convertRawPrivateKeyToWif('48a9c812cafcd35eb761501768ba7e2eb9a238853548556c2c38431f51d63030');
});
expect(retVal).toBe('5JNHfZYKGaomSFvd4NUdQ9qMcEAC43kujbfjueTHpVapX1Kzq2n');
});
test('Should be able to estimate hive collateral', async ({ waxTest }) => { test('Should be able to estimate hive collateral', async ({ waxTest }) => {
const retVal = await waxTest(async({ base }) => { const retVal = await waxTest(async({ base }) => {
return base.estimateHiveCollateral(201, 1000, 197, 1000, 100000); return base.estimateHiveCollateral(201, 1000, 197, 1000, 100000);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment