Closed tequdev closed 1 year ago
Thank you for sending in the snippet to test.
As it turns out, this issue has already been resolved, but the public npm package txmeta
is still an older version. It's published now under version txmeta@1.3.0
.
On a side note, may I interest you in the xrplkit/socket
package. It's an ultra lightweight client for websocket communications with rippled and clio. Auto reconnects. Your snippet would work like this:
import createSocket from "@xrplkit/socket";
import { extractExchanges } from "@xrplkit/txmeta";
const socket = createSocket({ url: "wss://xrpl.ws" });
const main = async () => {
const result = await socket.request({
command: "tx",
transaction:
"460AB874BCF6B3D3C993ED44AD141A58E10DCF454D120CF2922E8EB014D5C0A5",
});
extractExchanges(result);
};
main();
I updated to 1.3.0, but the error does not seem to be resolved.
All these packages you have created are lightweight and very interesting!
I see the issue now. xrplkit/amount
was using an outdated version of xfl
, which failed on class comparisons. https://github.com/Mwni/xrplkit/commit/b38f868208a8ce1ff1bb3ce4a6d06af9da5c972a
txmeta@1.3.1
has it figured out.
It worked! Thank you for your help!
The following codes error occurs.