i want to call two methods first call one method then second method after first method success below is my code please check and let me know how i can achieve this
this.state.token.methods.approve(this.state.neutralG.address, qty).send({ from: this.state.account}).
then('receipt', (receipt)=>{
this.state.neutralG.methods.createEscrow(intvalue, 3600, price, this.symbol, beneficiaryAddress, qty,
this.tokenAddress).send({ from: this.state.account}).
once('receipt', (receipt)=>{
this.setState({loading: false})
})
})
this is not calling second transaction.