Page MenuHomePhabricator

[Cashtab] Copy OP_RETURN message button added to Tx collapse
ClosedPublic

Authored by kieran709 on Apr 5 2022, 21:12.

Details

Summary

Related to task T2167. Added button to Tx dropdown to copy OP_RETURN message if one is present.

Test Plan

cd web/cashtab
npm start
if there are no Txs in TxHistory with an OP_RETURN msg, send one from another wallet
click a Tx with an OP_RETURN msg
click the Copy OP_RETURN button
observe the notification
ensure that the text copied to clipboard is correct

click a Tx with no OP_RETURN msg
observe that there is no Copy OP_RETURN button

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bytesofman requested changes to this revision.Apr 5 2022, 21:26

See inline comments -- users don't need to see the phrase OP_RETURN, it's for devs

web/cashtab/src/components/Home/Tx.js
684 ↗(On Diff #33087)

Cashtab message copied to clipboard

690 ↗(On Diff #33087)

Copy Msg

This revision now requires changes to proceed.Apr 5 2022, 21:26

responding to review feedback

This revision is now accepted and ready to land.Apr 6 2022, 00:01