Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getConfirmationData = () => {
hathorLib.txApi.getConfirmationData(this.state.transaction.hash, (data) => {
this.setState({ confirmationData: data });
}, (e) => {
// Error in request
console.log(e);
});
}
buttonClicked = () => {
hathorLib.txApi.decodeTx(this.state.dataToDecode, (data) => {
this.txDecoded(data);
}, (e) => {
// Error in request
console.log(e);
});
}