Skip to content

Commit 482bfd4

Browse files
fix error (#92)
1 parent a4a93f0 commit 482bfd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generator/key-utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ async function inspectKey(address) {
77
if (!keyTool) {
88
throw 'key tool path not specified'
99
}
10-
const {stdout} = await execa(keyTool, ['inspect', address]);
10+
const {stdout} = await execa(keyTool, ['inspect-key', '--uri', address]);
1111

1212
const rows = _.chain(stdout).split('\n').map(_.trim)
1313
const accountId = extractAccountId(rows)
@@ -28,7 +28,7 @@ function extractAccountId(outputs) {
2828
return null
2929
}
3030

31-
return ids[0]
31+
return ids[0].substring(2)
3232
}
3333

3434

0 commit comments

Comments
 (0)