Closed technotip closed 1 year ago
otxn_field_txt method seems to be missing from hook_api header file.
{ uint8_t output[50]; int64_t result_len = otxn_field_txt(SBUF(output), sfAccount); if(result_len != 50) rollback(SBUF("Testcase: bytes written"), 100); trace(SBUF("Testcase: account field"), SBUF(output), 1); trace_num(SBUF("Testcase: result_len"), result_len); }
Output a field from the originating transaction as a human readable string. In above case, sfAccount field.
[RippledError(Submit failed, { resultCode: 'temMALFORMED', resultMessage: 'Malformed transaction.', engine_result: 'temMALFORMED', engine_result_code: -299, engine_result_message: 'Malformed transaction.',
Malformed transaction. Hook attempted to import a function that does not appear in the hook_api function set: `otxn_field_txt`
This API has been removed
Issue Description
otxn_field_txt method seems to be missing from hook_api header file.
Steps to Reproduce
Expected Result
Output a field from the originating transaction as a human readable string. In above case, sfAccount field.
Actual Result
Log output