Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab-components/src/hoc/CashtabBase/CashtabBase.tsx
Show First 20 Lines • Show All 207 Lines • ▼ Show 20 Lines | return class extends React.Component<CashtabBaseProps, IState> { | ||||
sendParams.assetId = tokenId; | sendParams.assetId = tokenId; | ||||
} | } | ||||
if (opReturn && opReturn.length) { | if (opReturn && opReturn.length) { | ||||
sendParams.opReturn = opReturn; | sendParams.opReturn = opReturn; | ||||
} | } | ||||
this.setState({ step: 'pending' }); | this.setState({ step: 'pending' }); | ||||
/* May match this functionality later, may handle differently as above for Cashtab | |||||
console.info('Cashtab sendAssets begin', sendParams); | |||||
sendAssets(sendParams) | |||||
.then(({ txid }: any) => { | |||||
console.info('Cashtab send success:', txid); | |||||
successFn && successFn(txid); | |||||
this.paymentSendSuccess(); | |||||
}) | |||||
.catch((err: any) => { | |||||
console.info('Cashtab send cancel', err); | |||||
failFn && failFn(err); | |||||
this.setState({ step: 'fresh' }); | |||||
}); | |||||
*/ | |||||
}; | }; | ||||
updateSatoshisFiat = debounce( | updateSatoshisFiat = debounce( | ||||
async () => { | async () => { | ||||
const { price, currency } = this.props; | const { price, currency } = this.props; | ||||
if (!price) return; | if (!price) return; | ||||
const satoshis = await fiatToSatoshis(currency, price); | const satoshis = await fiatToSatoshis(currency, price); | ||||
▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines |