Skip to content

Commit

Permalink
break down json obj keys necessary for account initialization in node…
Browse files Browse the repository at this point in the history
…js docs
  • Loading branch information
nikita-fuchs committed Dec 10, 2020
1 parent 260a04f commit af5ee41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ coverage.*
.nyc_output/
/examples/**/package-lock.json
/examples/**/dist
.history
.history
site
4 changes: 2 additions & 2 deletions docs/guides/import-nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { Universal: Ae, MemoryAccount, Node } = require('@aeternity/aepp-sdk')
const node1 = Node({ url: 'https://testnet.aeternity.io', internalUrl: 'https://testnet.aeternity.io' })
// const node2 = ...

const acc1 = MemoryAccount({ keypair: 'YOUR_KEYPAIR_OBJECT' })
const acc1 = MemoryAccount({ keypair: {publicKey: 'YOUR_PUBLIC_KEY', secretKey: 'YOUR_PRIVATE_KEY'} })
// const acc2 = ...
Promise.all([
node1
Expand All @@ -35,7 +35,7 @@ const main = async () => {
const node1 = await Node({ url: 'https://testnet.aeternity.io', internalUrl: 'https://testnet.aeternity.io' })
// const node2 = ...

const acc1 = MemoryAccount({ keypair: 'YOUR_KEYPAIR_OBJECT' })
const acc1 = MemoryAccount({ keypair: {publicKey: 'YOUR_PUBLIC_KEY', secretKey: 'YOUR_PRIVATE_KEY'} })
// const acc2 = ...

const client = await Ae({
Expand Down

0 comments on commit af5ee41

Please sign in to comment.