Skip to content

Commit

Permalink
1.QT例子代码bug修复。
Browse files Browse the repository at this point in the history
  • Loading branch information
csyangbinbin committed Jun 16, 2021
1 parent 86d6f76 commit 3acaace
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/qt/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ void Widget::onDeployFinished(int status, QString contractAddr) {
void Widget::onBtnSendToken() {
QString recvAddr = ui->lineEdit_RecvTokenAddr->text();
int SendTokenCount = ui->lineEdit_SendTokenCount->text().toInt();

if (ui->lineEdit_ContractAddress->text().size() == 0)
return;
cfx_cpp::Address contractAddr(ui->lineEdit_ContractAddress->text().toStdString());
auto client = cfx_cpp::NewHttpsRpcClient("https://test.confluxrpc.com");
std::shared_ptr<cfx_cpp::Contract> deployedContract = std::make_shared<cfx_cpp::Contract>(client, contractAddr);
Expand Down

0 comments on commit 3acaace

Please sign in to comment.