【发布时间】:2018-07-21 00:55:36
【问题描述】:
我得到了一个
MetaMask Web3 对象不支持没有回调参数的同步方法,例如 eth_gasPrice。
即使我提供了回调参数:
web3.eth.gasPrice((err, gasPrice) => {
if (err) {
console.log(err)
} else {
store.dispatch('pollWeb3', {gasPrice: gasPrice})
}
})
根据the doc,这应该可以工作。我弄错了吗?
【问题讨论】: