|
|
@ -149,8 +149,7 @@ Main::Main(QWidget *parent) : |
|
|
|
|
|
|
|
m_webThree.reset(new WebThreeDirect(string("AlethZero/v") + dev::Version + "/" DEV_QUOTED(ETH_BUILD_TYPE) "/" DEV_QUOTED(ETH_BUILD_PLATFORM), getDataDir() + "/AlethZero", false, {"eth", "shh"})); |
|
|
|
|
|
|
|
m_qwebConnector = new QWebThreeConnector(); |
|
|
|
m_server = unique_ptr<WebThreeStubServer>(new WebThreeStubServer(m_qwebConnector, *web3(), keysAsVector(m_myKeys))); |
|
|
|
m_server = unique_ptr<WebThreeStubServer>(new WebThreeStubServer(&m_qwebConnector, *web3(), keysAsVector(m_myKeys))); |
|
|
|
m_server->setIdentities(keysAsVector(owned())); |
|
|
|
m_server->StartListening(); |
|
|
|
|
|
|
@ -159,7 +158,7 @@ Main::Main(QWidget *parent) : |
|
|
|
// NOTE: no need to delete as QETH_INSTALL_JS_NAMESPACE adopts it.
|
|
|
|
m_qweb = new QWebThree(this); |
|
|
|
auto qweb = m_qweb; |
|
|
|
m_qwebConnector->setQWeb(qweb); |
|
|
|
m_qwebConnector.setQWeb(qweb); |
|
|
|
|
|
|
|
QWebSettings::globalSettings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true); |
|
|
|
QWebFrame* f = ui->webView->page()->mainFrame(); |
|
|
|