bigchaindb / js-bigchaindb-driver

Official BigchainDB JavaScript driver for Node.js and the browser
https://docs.bigchaindb.com/projects/js-driver/en/latest/usage.html
Apache License 2.0
216 stars 92 forks source link

driver.Transaction.delegateSignTransaction is not a function gives error on my local setup #306

Closed amiranviam closed 3 years ago

amiranviam commented 3 years ago

Everything works fine when I use test.io online server but when tried same code on my local setup of bigchaindb it gives me error

const txSigned1 = driver.Transaction.delegateSignTransaction(tx, signTransaction()) ^

TypeError: driver.Transaction.delegateSignTransaction is not a function at Object. (C:\Users\acer\first-app\bigchaindb.js:101:38) at Module._compile (internal/modules/cjs/loader.js:1147:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10) at Module.load (internal/modules/cjs/loader.js:996:32) at Function.Module._load (internal/modules/cjs/loader.js:896:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at internal/main/run_main_module.js:17:47

DkReactNative commented 3 years ago

Could you send me more detail and code

getlarge commented 3 years ago

@amiranviam delegateSignTransaction has been implemented not long ago and the driver has not been published to npm since.

getlarge commented 3 years ago

@amiranviam A new release has been made which will allow you to use delegateSignTransaction.