Proposal: log binary data for Solidity

The program_id is not needed on "Program return data: " because it
always preceeded by the program invoke message, so no need to repeat
the program id. Also rename this to "Program return: " since "data"
is redundant.
This commit is contained in:
Sean Young
2021-09-17 09:14:49 +01:00
parent 1fa8b6b966
commit d714cf659c
17 changed files with 432 additions and 10 deletions

View File

@ -40,6 +40,11 @@ static void sol_log_array(const uint8_t *array, int len) {
}
}
/**
* Print the base64 representation of some arrays.
*/
void sol_log_data(SolBytes *fields, uint64_t fields_len);
/**
* Prints the program's input parameters
*