lib/transaction-searcher.js
// Return smart contract change state data
Return smart contract change state data
Return smart contract change state data
async receiveStateChange(hash) {
        let web3 = await this.connector.getWeb3();
        return await web3.eth.getTransaction(hash)
                        .then(async res => await abiDecoder.decodeMethod(res.input))
                        .then(decoded => {
                            return {
                                txHash: decoded.params[0].value,
                                state: decoded.params[1].value
                            };
                        });
    }
async receiveStateChange ( hash ) { let web3 = await this . connector . getWeb3 ( ) ; return await web3 . eth . getTransaction ( hash ) . then ( async res => await abiDecoder . decodeMethod ( res . input ) ) . then ( decoded => { return { txHash : decoded . params [ 0 ] . value , state : decoded . params [ 1 ] . value } ; } ) ; }
Return smart contract change state data
Return smart contract change state data