-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Created two cmd line utilities for converting between hex and json #16
base: main
Are you sure you want to change the base?
Conversation
I think something more like EOSIO/abieos#60 where the abi is provided as an abi file would be better. |
Good example, I can switch to a file to ABI, and I move the executables to tools directory. Ok to use c++ to read the file? Specifically using |
I think same location of executes as |
fwiw a small, simple, but inefficient way I've used to read in a small file to a string is something like std::string filename = "foo.file";
std::ifstream ifs(filename);
std::string string_of_file_contents((std::istreambuf_iterator<char>(ifs)), std::istreambuf_iterator<char>()); (inefficiency doesn't really matter for simple stuff like this) |
Got it, I will C++'ify the code. Thanks for the simple approach to reading a small file. I'll take it. |
- fork way out of date updating to match source of truth
|
||
// prints usage | ||
void help(const char* exec_name) { | ||
std::cerr << "Usage " << exec_name << ": -f -j JSON -x type [-v]"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a missing \n
on this line, which mangles the formatting of help output
Created two command line programs
Used this for generating test data for eosjs