I have a contract called tracking. It has a function called move() I called this function using code:
import {bonds} from 'oo7-parity';
const counterABI = [...]
const ContractAddress = '...'
constructor() {
super()
this.counter = bonds.makeContract(ContractAddress, counterABI)
}
/*hidden code*/
this.counter.move(data, this.state.caminho[this.state.caminho.length - 1], id)
This function move() returns true or false. But how can I have access to this returned value?
I tried the following:
let res = this.counter.move(data, this.state.caminho[this.state.caminho.length - 1], id)
console.log(res)
But is doesn't work. This just print a huge json and I don't know where ir the returned value (true or false)