Use deSig rather than concat

This commit is contained in:
finned-palmer 2021-07-14 13:18:44 -05:00 committed by ixv
parent 736ca726c4
commit fb0ec8acc9

View File

@ -18,6 +18,7 @@ import { validate } from 'bitcoin-address-validation';
import * as ob from 'urbit-ob';
import { useSettings } from '../../hooks/useSettings.js';
import { api } from '../../api';
import { deSig } from '../../lib/util.js';
const focusFields = {
empty: '',
@ -91,7 +92,7 @@ const Send = ({ stopSending, value, conversion }) => {
setPayeeType('address');
setValidPayee(true);
} else {
const possibleValidPatPMissingSig = '~'.concat(payeeReceived);
const possibleValidPatPMissingSig = `~${deSig(payeeReceived)}`;
if (ob.isValidPatp(possibleValidPatPMissingSig)) {
validPatPCommand(possibleValidPatPMissingSig);
} else {