1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-11-22 17:50:09 +01:00

fix example

This commit is contained in:
Matthias Kretschmann 2017-06-14 15:15:54 +02:00
parent c5f14f4df8
commit e40e332b0f
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -78,7 +78,7 @@ const tx = driver.Transaction.makeCreateTransaction(
const txSigned = driver.Transaction.signTransaction(tx, alice.privateKey) const txSigned = driver.Transaction.signTransaction(tx, alice.privateKey)
// Send the transaction off to BigchainDB // 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) conn.postTransaction(txSigned)
.then(() => conn.getStatus(txSigned.id)) .then(() => conn.getStatus(txSigned.id))