hi guys I have this contract function:
function teste(uint _oX) public returns (uint value) {
return 34;
}
And I try to call in JS this way :
MyContract.teste(1).then(value => console.log(value) );
But I received this instead the value 34:
{blockHash: "0xd43e64033fdc8058be7da224059f15ef5f3268813294f2a9087a747d1ed674da", blockNumber: 2600, contractAddress: null, cumulativeGasUsed: 21722, from: "0xc5a5d47b525851bde4811aa870a331024156eeec", …}blockHash: "0xd43e64033fdc8058be7da224059f15ef5f3268813294f2a9087a747d1ed674da"blockNumber: 2600contractAddress: nullcumulativeGasUsed: 21722events: {}from: "0xc5a5d47b525851bde4811aa870a331024156eeec"gasUsed: 21722logsBloom: "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"status: "0x1"to: "0x7b475783cee479de3b270193b61450c649b2abef"transactionHash: "0x4455026eeae746f58e49f977f42597321426f9fe6cc3818deffac63dd9c61909"transactionIndex: 0__proto__: Object
someone can help me with this :| Tank you