symbol-sdk-typescript-javascript
symbol-sdk-typescript-javascript copied to clipboard
Unable to extract transaction meta handled by listener.
- Expected behavior and actual behavior.
The listener receives a message when it detects the confirm of a transaction, but it seems to be failing to extract the timestamp and fee information at that time.
- Steps to reproduce the problem.
like this↓
address = sym.Address.createFromRawAddress("TBIL6D6RURP45YQRWV6Q7YVWIIPLQGLZQFHWFEQ");
listener.open().then(() => {
listener.confirmed(address )
.subscribe(tx=>{
console.log(tx);
});
});
error message
/src/node_modules/long/src/long.js:221
if (str.length === 0)
^
TypeError: Cannot read property 'length' of undefined
at Function.fromString (/src/node_modules/long/src/long.js:221:13)
at Function.isLongNumericString (/src/node_modules/symbol-sdk/dist/src/model/UInt64.js:74:33)
at Function.fromNumericString (/src/node_modules/symbol-sdk/dist/src/model/UInt64.js:62:21)
at extractTransactionMeta (/src/node_modules/symbol-sdk/dist/src/infrastructure/transaction/CreateTransactionFromDTO.js:95:124)
at CreateTransactionFromDTO (/src/node_modules/symbol-sdk/dist/src/infrastructure/transaction/CreateTransactionFromDTO.js:202:79)
at Listener.handleMessage (/src/node_modules/symbol-sdk/dist/src/infrastructure/Listener.js:153:86)
at WebSocket.webSocket.onmessage (/src/node_modules/symbol-sdk/dist/src/infrastructure/Listener.js:121:26)
at WebSocket.onMessage (/src/node_modules/ws/lib/event-target.js:132:16)
at WebSocket.emit (node:events:369:20)
at Receiver.receiverOnMessage (/src/node_modules/ws/lib/websocket.js:1059:20)
- Specifications like the version of the project, operating system, or hardware.
symbol-sdk-typescript-javascript v.2.0.1 It has been reported by several people in a variety of settings.