We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73cb97d commit 550622fCopy full SHA for 550622f
packages/test/src/runTests.js
@@ -13,6 +13,10 @@ import testXrp3 from "./testXrp3";
13
import testStr from "./testStr";
14
import testStr2 from "./testStr2";
15
import testStr3 from "./testStr3";
16
+import testAda from "./testAda";
17
+import testAda2 from "./testAda2";
18
+import testAda3 from "./testAda3";
19
+import testAda4 from "./testAda4";
20
21
function expectAppContext(appName) {
22
// TODO improve this by waiting user to do an action?
@@ -41,7 +45,12 @@ var tests = [
41
45
expectAppContext("Stellar"),
42
46
{ name: "testStr", run: testStr },
43
47
{ name: "testStr2", run: testStr2 },
44
- { name: "testStr3", run: testStr3 }
48
+ { name: "testStr3", run: testStr3 },
49
+ expectAppContext("Cardano (ada)"),
50
+ { name: "testAda", run: testAda },
51
+ { name: "testAda2", run: testAda2 },
52
+ { name: "testAda3", run: testAda3 },
53
+ { name: "testAda4", run: testAda4 }
54
];
55
56
const defaultWaitForAppSwitch = step =>
packages/test/src/testAda.js
@@ -2,6 +2,6 @@ import Ada from "@ledgerhq/hw-app-ada";
2
3
export default async transport => {
4
const ada = new Ada(transport);
5
- const result = await ada.isConnected();
+ const result = await ada.getWalletRecoveryPassphrase();
6
return result;
7
};
packages/test/src/testAda2.js
@@ -0,0 +1,7 @@
1
+import Ada from "@ledgerhq/hw-app-ada";
+
+export default async transport => {
+ const ada = new Ada(transport);
+ const result = await ada.isConnected();
+ return result;
+};
packages/test/src/testAda3.js
+ const result = await ada.getWalletPublicKeyWithIndex(0xFEEDBEEF);
packages/test/src/testAda4.js
@@ -0,0 +1,8 @@
+ const tx = "839F8200D8185826825820E981442C2BE40475BB42193CA35907861D90715854DE6FCBA767B98F1789B51219439AFF9F8282D818584A83581CE7FE8E468D2249F18CD7BF9AEC0D4374B7D3E18609EDE8589F82F7F0A20058208200581C240596B9B63FC010C06FBE92CF6F820587406534795958C411E662DC014443C0688E001A6768CC861B0037699E3EA6D064FFA0";
+ const result = await ada.signTransaction(tx, [0xFFFFFFFF]);
8
0 commit comments