Browse Source

gasPrice and gas in interactive help, fix cmd passed through iss instead of cin

cl-refactor
Vincent Gariepy 11 years ago
parent
commit
077d9310b2
  1. 9
      eth/main.cpp

9
eth/main.cpp

@ -87,8 +87,8 @@ void interactiveHelp()
<< " secret Gives the current secret" << endl
<< " block Gives the current block height." << endl
<< " balance Gives the current balance." << endl
<< " transact <secret> <dest> <amount> Executes a given transaction." << endl
<< " send <dest> <amount> Executes a given transaction with current secret." << endl
<< " transact <secret> <dest> <amount> <gasPrice> <gas> <data> Executes a given transaction." << endl
<< " send <dest> <amount> <gasPrice> <gas> Executes a given transaction with current secret." << endl
<< " inspect <contract> Dumps a contract to <APPDATA>/<contract>.evm." << endl
<< " exit Exits the application." << endl;
}
@ -508,10 +508,11 @@ int main(int argc, char** argv)
u256 amount;
u256 gasPrice;
u256 gas;
cin >> sechex >> rechex >> amount >> gasPrice >> gas;
iss >> sechex >> rechex >> amount >> gasPrice >> gas;
Secret secret = h256(fromHex(sechex));
Address dest = h160(fromHex(rechex));
bytes data;
c.transact(secret, amount, gasPrice, gas, dest, data);
}
else if (cmd == "send")
@ -520,7 +521,7 @@ int main(int argc, char** argv)
u256 amount;
u256 gasPrice;
u256 gas;
cin >> rechex >> amount >> gasPrice >> gas;
iss >> rechex >> amount >> gasPrice >> gas;
Address dest = h160(fromHex(rechex));
c.transact(us.secret(), amount, gasPrice, gas, dest, bytes());

Loading…
Cancel
Save