-
Notifications
You must be signed in to change notification settings - Fork 10
Description
I am trying to transfer an existing MIT but the last part when blockchain broadcasts the tx, it gives me an error of "input validation failed"
(node:4926) UnhandledPromiseRejectionWarning: Error: validate transaction failure: validation of inputs failed at /Users/mehradkavian/Dropbox/viewFin/MetaverseTutorials/mvs-blockchain-js/src/adapter/remote.js:269:32 at Request.callback (/Users/mehradkavian/Dropbox/viewFin/MetaverseTutorials/mvs-blockchain-js/node_modules/superagent/lib/node/index.js:716:12) at /Users/mehradkavian/Dropbox/viewFin/MetaverseTutorials/mvs-blockchain-js/node_modules/superagent/lib/node/index.js:916:18 at Stream.<anonymous> (/Users/mehradkavian/Dropbox/viewFin/MetaverseTutorials/mvs-blockchain-js/node_modules/superagent/lib/node/parsers/json.js:19:7) at Stream.emit (events.js:210:5) at Unzip.<anonymous> (/Users/mehradkavian/Dropbox/viewFin/MetaverseTutorials/mvs-blockchain-js/node_modules/superagent/lib/node/unzip.js:55:12) at Unzip.emit (events.js:215:7) at endReadableNT (_stream_readable.js:1183:12) at processTicksAndRejections (internal/process/task_queues.js:80:21) (node:4926) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:4926) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I am following the tutorial 3. This line gives me an error :
tx = await blockchain.transaction.broadcast(tx.toString('hex'))
Any ideas? I have enough ETP in the related address.