mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-25 14:11:09 +00:00
Consolidate wallet account decoding and portfolio handling around the shared Rust IDL decoder. Simplify AMM wallet integration, remove obsolete caches and network plumbing, and cover account selection and live flows.
23 lines
536 B
C++
23 lines
536 B
C++
#include "WalletIdlDecoder.h"
|
|
|
|
#include <QtTest>
|
|
|
|
class WalletIdlDecoderLinkTest final : public QObject {
|
|
Q_OBJECT
|
|
|
|
private slots:
|
|
void linksDefaultDecoder();
|
|
};
|
|
|
|
void WalletIdlDecoderLinkTest::linksDefaultDecoder()
|
|
{
|
|
const WalletDecodeResult result = WalletIdlDecoder::decode(
|
|
QByteArrayLiteral("not-json"), {});
|
|
|
|
QCOMPARE(result.status, QStringLiteral("error"));
|
|
QCOMPARE(result.error, QStringLiteral("invalid_idl"));
|
|
}
|
|
|
|
QTEST_GUILESS_MAIN(WalletIdlDecoderLinkTest)
|
|
#include "WalletIdlDecoderLinkTest.moc"
|