mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-28 19:55:53 +03:00
Use deSig for isPatp
This commit is contained in:
parent
fb0ec8acc9
commit
9de743fae7
@ -81,10 +81,10 @@ const Send = ({ stopSending, value, conversion }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let payeeReceived = e.target.value;
|
let payeeReceived = e.target.value;
|
||||||
let isPatp = ob.isValidPatp(payeeReceived);
|
let isPatp = ob.isValidPatp(`~${deSig(payeeReceived)}`);
|
||||||
let isAddress = validate(payeeReceived);
|
let isAddress = validate(payeeReceived);
|
||||||
if (isPatp) {
|
if (isPatp) {
|
||||||
validPatPCommand(payeeReceived);
|
validPatPCommand(`~${deSig(payeeReceived)}`);
|
||||||
} else if (isAddress) {
|
} else if (isAddress) {
|
||||||
setPayee(payeeReceived);
|
setPayee(payeeReceived);
|
||||||
setReady(true);
|
setReady(true);
|
||||||
@ -92,16 +92,11 @@ const Send = ({ stopSending, value, conversion }) => {
|
|||||||
setPayeeType('address');
|
setPayeeType('address');
|
||||||
setValidPayee(true);
|
setValidPayee(true);
|
||||||
} else {
|
} else {
|
||||||
const possibleValidPatPMissingSig = `~${deSig(payeeReceived)}`;
|
setPayee(payeeReceived);
|
||||||
if (ob.isValidPatp(possibleValidPatPMissingSig)) {
|
setReady(false);
|
||||||
validPatPCommand(possibleValidPatPMissingSig);
|
setCheckingPatp(false);
|
||||||
} else {
|
setPayeeType('');
|
||||||
setPayee(payeeReceived);
|
setValidPayee(false);
|
||||||
setReady(false);
|
|
||||||
setCheckingPatp(false);
|
|
||||||
setPayeeType('');
|
|
||||||
setValidPayee(false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user