简体   繁体   中英

Ethereum - Embark console method calls all returning as undefined

I'm using the Embark framework to build my first DApp, and have been successful in building the "SimpleStorage" Embark demo shown here . I can use the web interface to set and retrieve values successfully, but when I try to do so directly from the Embark console, it returns undefined for any method call to any contract I've deployed.

在此处输入图片说明

I've tried using Go-Ethereum as well as EthereumJS TestRPC to no avail.

I also reported the issue here where people seem to have had the same problem but the issue has already been closed by the projects maintainer.

Embark使用web3.js 1.0 ,应为MDBAccount.methods.post("Hello World").send()MDBService.methods.register().send({gas:900000})完整的文档可以在此处找到。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM