我在solidity中创建了另一个函数来返回结果(getGameNumbers),但我可以将它添加到 oraclizeCall 函数在此处输入图像描述
async WinningNumbers () {
const {accounts, contract}=this.state;
this.state.contract.methods.GenerateGameNumbers().send({from: accounts[0],gas:5000000, fromBlock: 'latest', toBlock: 'latest'+1},(err,results) =>{
if(results !=null){
this.setState({
winNum: (results)
})
}
})
}
我在控制台中得到事务哈希而不是结果