Browse Source

Small fixes AZ MainWin.cpp

cl-refactor
Lefteris Karapetsas 10 years ago
parent
commit
396fe954b6
  1. 4
      alethzero/MainWin.cpp
  2. 2
      alethzero/NatspecHandler.cpp

4
alethzero/MainWin.cpp

@ -1639,7 +1639,7 @@ static shh::Topic topicFromText(QString _s)
bool Main::sourceIsSolidity(std::string const& _source) bool Main::sourceIsSolidity(std::string const& _source)
{ {
// TODO: Improve this heuristic // TODO: Improve this heuristic
return (_source.substr(0, 8) == "contract" || _source.substr(0, 2) == "/*"); return (_source.substr(0, 8) == "contract" || _source.substr(0, 5) == "//sol");
} }
void Main::on_data_textChanged() void Main::on_data_textChanged()
@ -1901,7 +1901,7 @@ void Main::on_send_clicked()
} }
catch (...) catch (...)
{ {
statusBar()->showMessage("Couldn't make transaction: no single account contains at least the required amount."); statusBar()->showMessage("Couldn't compile Solidity Contract.");
} }
} }
} }

2
alethzero/NatspecHandler.cpp

@ -15,7 +15,7 @@
along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>. along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>.
*/ */
/** @file NatspecHandler.h /** @file NatspecHandler.cpp
* @author Lefteris Karapetsas <lefteris@ethdev.com> * @author Lefteris Karapetsas <lefteris@ethdev.com>
* @date 2015 * @date 2015
*/ */

Loading…
Cancel
Save