mirror of
https://github.com/logos-blockchain/logos-execution-zone-module.git
synced 2026-07-09 20:19:53 +00:00
fix: serialization helper removed, it does not help.
This commit is contained in:
parent
8ded127c28
commit
09f539a136
@ -88,8 +88,6 @@ public:
|
||||
virtual QString register_public_account(const QString& account_id_hex) = 0;
|
||||
virtual QString register_private_account(const QString& account_id_hex) = 0;
|
||||
|
||||
virtual QList<QString> serialization_helper(const QList<QString>& input_data) = 0;
|
||||
|
||||
virtual QList<QString> authenticated_transfer_elf() = 0;
|
||||
virtual QList<QString> token_elf() = 0;
|
||||
virtual QList<QString> amm_elf() = 0;
|
||||
|
||||
@ -821,30 +821,6 @@ QList<QString> LogosExecutionZoneWalletModule::authenticated_transfer_elf() {
|
||||
return result;
|
||||
}
|
||||
|
||||
QList<QString> LogosExecutionZoneWalletModule::serialization_helper(const QList<QString>& input_data) {
|
||||
QList<uint8_t> input_list;
|
||||
input_list.reserve(input_data.size());
|
||||
for (const QString& val : input_data) {
|
||||
input_list.append(static_cast<uint8_t>(val.toInt()));
|
||||
}
|
||||
|
||||
const uint8_t* input_instruction_data = input_list.constData();
|
||||
uintptr_t input_instruction_data_size = static_cast<uintptr_t>(input_list.size());
|
||||
FfiInstructionWords raw_words = wallet_ffi_serialization_helper(input_instruction_data, input_instruction_data_size);
|
||||
if (raw_words.error != SUCCESS) {
|
||||
qWarning() << "serialization_helper: wallet FFI error" << raw_words.error;
|
||||
return QList<QString>();
|
||||
}
|
||||
|
||||
QList<QString> result;
|
||||
result.reserve(raw_words.instruction_words_size);
|
||||
for (size_t i = 0; i < raw_words.instruction_words_size; ++i) {
|
||||
result.append(QString::number(raw_words.instruction_words[i]));
|
||||
}
|
||||
wallet_ffi_free_instruction_words(&raw_words);
|
||||
return result;
|
||||
}
|
||||
|
||||
QString LogosExecutionZoneWalletModule::send_generic_public_transaction(
|
||||
const QList<QString>& account_ids,
|
||||
const QList<QString>& signing_requirements,
|
||||
|
||||
@ -116,8 +116,6 @@ public:
|
||||
Q_INVOKABLE QString register_public_account(const QString& account_id_hex) override;
|
||||
Q_INVOKABLE QString register_private_account(const QString& account_id_hex) override;
|
||||
|
||||
Q_INVOKABLE QList<QString> serialization_helper(const QList<QString>& input_data) override;
|
||||
|
||||
Q_INVOKABLE QList<QString> authenticated_transfer_elf() override;
|
||||
Q_INVOKABLE QList<QString> token_elf() override;
|
||||
Q_INVOKABLE QList<QString> amm_elf() override;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user