Truffle

Truffle Tutorial pet-shop with test-rpc 採用按鈕不起作用

  • January 9, 2018

我完全按照他們在他們的頁面中顯示的教程進行操作:http: //truffleframework.com/tutorials/pet-shop

除了以下更改,因為他們使用“ganache”(目前有問題且不可用),我選擇了“test-rpc” :

在“truffle.js”埠:8545

在“src/app.js” App.web3Provider = new Web3.providers.HttpProvider(’ http://localhost:8545 ‘);

前端 UI 中的“採用”按鈕不會提示帶有元遮罩的事務。

這是一個問題,因為“視圖”分類放錯了位置。請參閱https://github.com/trufflesuite/trufflesuite.com/pull/52它應該可以工作。“從第 130 行刪除了“視圖”字樣。有了字視圖,您永遠無法點擊採用按鈕,MetaMask 將永遠不會彈出。

引用自:https://ethereum.stackexchange.com/questions/34263