diff --git a/eth/main.cpp b/eth/main.cpp index 20e09b4d8..7c5f51be4 100644 --- a/eth/main.cpp +++ b/eth/main.cpp @@ -398,7 +398,7 @@ int main(int argc, char** argv) { std::ostringstream ccout; - /* Initialize ncurses */ + // Initialize ncurses const char* chr; char* str = new char[255]; int width; @@ -424,7 +424,7 @@ int main(int argc, char** argv) echo(); keypad(mainwin, true); - /* Initialize color pairs */ + // Initialize color pairs start_color(); init_pair(1, COLOR_WHITE, COLOR_BLACK); init_pair(2, COLOR_RED, COLOR_BLACK); @@ -564,7 +564,8 @@ int main(int argc, char** argv) if (fs > 0) cwarn << "Missing parameter"; } - else { + else + { fields[0].erase(std::remove(fields[0].begin(), fields[0].end(), ' '), fields[0].end()); fields[4].erase(std::remove(fields[4].begin(), fields[4].end(), ' '), fields[4].end()); fields[5].erase(std::find_if(fields[5].rbegin(), fields[5].rend(), std::bind1st(std::not_equal_to(), ' ')).base(), fields[5].end()); @@ -590,7 +591,8 @@ int main(int argc, char** argv) if (ssize > 0) cwarn << "Invalid secret length:" << ssize; } - else { + else + { Secret secret = h256(fromHex(sechex)); Address dest = h160(fromHex(fields[0])); bytes data = asBytes(sdata); @@ -614,7 +616,8 @@ int main(int argc, char** argv) if (fs > 0) cwarn << "Missing parameter"; } - else { + else + { fields[0].erase(std::remove(fields[0].begin(), fields[0].end(), ' '), fields[0].end()); int size = fields[0].length(); u256 amount = atoll(fields[1].c_str()); @@ -647,11 +650,13 @@ int main(int argc, char** argv) vector fields = form_dialog(s, l, b, height, width, cmd); c.unlock(); int fs = fields.size(); - if (fs < 5) { + if (fs < 5) + { if (fs > 0) cwarn << "Missing parameter"; } - else { + else + { u256 endowment = atoll(fields[0].c_str()); u256 gas = atoll(fields[2].c_str()); u256 gasPrice = atoll(fields[1].c_str()); @@ -958,7 +963,7 @@ vector form_dialog(vector _sv, vector _lv, vector form_dialog(vector _sv, vector _lv, vector form_dialog(vector _sv, vector _lv, vector