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