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

Added basic test for IWaxBaseInterface.convertRawPrivateKeyToWif method

parent 222289c5
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.
Finish editing this message first!
Please register or to comment