on master help sign in
bitcoin: remove debugging stuff
a6b3591pkova
src/views/Bitcoin.js−6
@@ -34,7 +34,6 @@ export default function Bitcoin() {
34 const { urbitWallet } = useWallet();
34 const { urbitWallet } = useWallet();
35 const { pointCursor } = usePointCursor();
35 const { pointCursor } = usePointCursor();
36
36
37− window.bitcoin = bitcoin;
38
37
39 const empty = new bitcoin.Psbt();
38 const empty = new bitcoin.Psbt();
40
39
@@ -68,11 +67,6 @@ export default function Bitcoin() {
68 });
67 });
69
68
70 const onValues = ({ valid, values, form }) => {
69 const onValues = ({ valid, values, form }) => {
71− try {
72− window.psbt = bitcoin.Psbt.fromBase64(values.unsignedTransaction);
73− } catch (e) {
74− // nop
75− }
76 if (valid) {
70 if (valid) {
77 const newPsbt = bitcoin.Psbt.fromBase64(values.unsignedTransaction);
71 const newPsbt = bitcoin.Psbt.fromBase64(values.unsignedTransaction);
78 const hex = newPsbt.data.inputs
72 const hex = newPsbt.data.inputs