* refactor: Destructure imports together from same source in example util-crypto 01 * refactor: Destructure imports together example util-crypto 02. Avoid using default import. Show data to user * refactor: Destructure imports together example util-crypto 03. Show data to user * refactor: Split import over two lines looks cleaner * fix: Address review comments. Update dependencies in examples
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
"start": "node index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^0.32.2",
|
||||
"@polkadot/keyring": "^0.32.1"
|
||||
"@polkadot/util": "^0.32.10",
|
||||
"@polkadot/keyring": "^0.32.10"
|
||||
},
|
||||
"devDependencies": {
|
||||
"rimraf": "^2.6.2"
|
||||
|
||||
@@ -23,7 +23,7 @@ async function main () {
|
||||
.forEach((pair, index) => {
|
||||
const address = pair.address();
|
||||
|
||||
console.log(`${index} account has json: `,
|
||||
console.log(`\nAccount with index #${index} has json: `,
|
||||
JSON.stringify(keyring.toJson(address), null, 2));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
"start": "node index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^0.32.2",
|
||||
"@polkadot/keyring": "^0.32.1"
|
||||
"@polkadot/util": "^0.32.10",
|
||||
"@polkadot/keyring": "^0.32.10"
|
||||
},
|
||||
"devDependencies": {
|
||||
"rimraf": "^2.6.2"
|
||||
|
||||
Reference in New Issue
Block a user