mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-25 14:11:09 +00:00
feat(wallet): humanize shared wallet experience
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.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#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"
|
||||
Reference in New Issue
Block a user