From e40e332b0f4b28c78336a345efbba7b9937b76e9 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 14 Jun 2017 15:15:54 +0200 Subject: [PATCH 1/3] fix example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 554bdca..cf40316 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ const tx = driver.Transaction.makeCreateTransaction( const txSigned = driver.Transaction.signTransaction(tx, alice.privateKey) // Send the transaction off to BigchainDB -let conn = new driver.Connection(PATH, { 'Content-Type': 'application/json' }) +let conn = new driver.Connection(API_PATH, { 'Content-Type': 'application/json' }) conn.postTransaction(txSigned) .then(() => conn.getStatus(txSigned.id)) From e35d8aae3c51fe7800e2ad7418ef8e36e9e8d351 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 14 Jun 2017 17:45:46 +0200 Subject: [PATCH 2/3] mention IPDB --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cf40316..7452ef7 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ You'll probably need a babel here and a bundler there. Alternatively, use one of ```js import * as driver from 'bigchaindb-driver' -// http(s):/// (e.g. http://localhost:9984/api/v1/) +// BigchainDB server instance or IPDB (e.g. https://test.ipdb.io/api/v1/) const API_PATH = 'http://localhost:9984/api/v1/' // Create a new user with a public-private key pair From 1916e3f85d5f82cc34c299d0f0a0e0e4efb5fd72 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 14 Jun 2017 18:06:06 +0200 Subject: [PATCH 3/3] a semicolon, kill it, kill it with fire --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7452ef7..df78eb5 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ const tx = driver.Transaction.makeCreateTransaction( driver.Transaction.makeEd25519Condition(alice.publicKey)) ], alice.publicKey -); +) // Optional: You've got everything you need, except for an asset // and metadata. Maybe define them here, any JSON-serializable object