15
15
******************************************************************************* */
16
16
17
17
import Zemu , { DEFAULT_START_OPTIONS , DeviceModel } from '@zondax/zemu'
18
- import DfinityApp from '@zondax/ledger-dfinity '
18
+ import InternetComputerApp from '@zondax/ledger-icp '
19
19
import * as secp256k1 from 'secp256k1'
20
20
21
21
const sha256 = require ( 'js-sha256' )
@@ -64,7 +64,7 @@ describe('Standard', function () {
64
64
const sim = new Zemu ( m . path )
65
65
try {
66
66
await sim . start ( { ...defaultOptions , model : m . name } )
67
- const app = new DfinityApp ( sim . getTransport ( ) )
67
+ const app = new InternetComputerApp ( sim . getTransport ( ) )
68
68
const resp = await app . getVersion ( )
69
69
70
70
console . log ( resp )
@@ -84,7 +84,7 @@ describe('Standard', function () {
84
84
const sim = new Zemu ( m . path )
85
85
try {
86
86
await sim . start ( { ...defaultOptions , model : m . name } )
87
- const app = new DfinityApp ( sim . getTransport ( ) )
87
+ const app = new InternetComputerApp ( sim . getTransport ( ) )
88
88
89
89
const resp = await app . getAddressAndPubKey ( "m/44'/223'/0'/0/0" )
90
90
@@ -112,7 +112,7 @@ describe('Standard', function () {
112
112
const sim = new Zemu ( m . path )
113
113
try {
114
114
await sim . start ( { ...defaultOptions , model : m . name } )
115
- const app = new DfinityApp ( sim . getTransport ( ) )
115
+ const app = new InternetComputerApp ( sim . getTransport ( ) )
116
116
117
117
const respRequest = app . showAddressAndPubKey ( "m/44'/223'/0'/0/0" )
118
118
@@ -146,7 +146,7 @@ describe('Standard', function () {
146
146
const sim = new Zemu ( m . path )
147
147
try {
148
148
await sim . start ( { ...defaultOptions , model : m . name } )
149
- const app = new DfinityApp ( sim . getTransport ( ) )
149
+ const app = new InternetComputerApp ( sim . getTransport ( ) )
150
150
151
151
const respAddr = await app . getAddressAndPubKey ( "m/44'/223'/0'/0/0" )
152
152
console . log ( respAddr )
@@ -201,7 +201,7 @@ describe('Standard', function () {
201
201
const sim = new Zemu ( m . path )
202
202
try {
203
203
await sim . start ( { ...defaultOptions , model : m . name } )
204
- const app = new DfinityApp ( sim . getTransport ( ) )
204
+ const app = new InternetComputerApp ( sim . getTransport ( ) )
205
205
206
206
const respAddr = await app . getAddressAndPubKey ( "m/44'/223'/0'/0/0" )
207
207
console . log ( respAddr )
@@ -255,7 +255,7 @@ describe('Standard', function () {
255
255
const sim = new Zemu ( m . path )
256
256
try {
257
257
await sim . start ( { ...defaultOptions , model : m . name } )
258
- const app = new DfinityApp ( sim . getTransport ( ) )
258
+ const app = new InternetComputerApp ( sim . getTransport ( ) )
259
259
260
260
// Enable expert mode
261
261
console . log ( 'Set expert mode' )
@@ -314,7 +314,7 @@ describe('Standard', function () {
314
314
const sim = new Zemu ( m . path )
315
315
try {
316
316
await sim . start ( { ...defaultOptions , model : m . name } )
317
- const app = new DfinityApp ( sim . getTransport ( ) )
317
+ const app = new InternetComputerApp ( sim . getTransport ( ) )
318
318
319
319
// Enable expert mode
320
320
console . log ( 'Set expert mode' )
0 commit comments