Adding eth private key as option when sending assets
This commit is contained in:
parent
d6100f2eb8
commit
c7ac9922f8
@ -442,7 +442,7 @@
|
||||
if (!value) return { isValid: false, errorText: 'Please enter a private key' }
|
||||
return {
|
||||
isValid: floCrypto.getPubKeyHex(value),
|
||||
errorText: `Invalid private key.<br> It usually starts with "L" or "R".`
|
||||
errorText: `Invalid private key.`
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -452,7 +452,7 @@
|
||||
if (!value) return { isValid: false, errorText: 'Please enter a private key or eth address' }
|
||||
return {
|
||||
isValid: floCrypto.getPubKeyHex(value) || ethOperator.isValidAddress(value),
|
||||
errorText: `Invalid private key or eth address.<br> It usually starts with "L" or "R" or "0x"`
|
||||
errorText: `Invalid private key or eth address"`
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -786,7 +786,7 @@
|
||||
Check balance
|
||||
</button>
|
||||
</div>
|
||||
<sm-input id="private_key_input" placeholder="Sender's FLO/BTC private key" oninput=${handleSenderInput} data-private-key class="password-field" type="password" animate required>
|
||||
<sm-input id="private_key_input" placeholder="Sender's FLO/BTC/ETH private key" oninput=${handleSenderInput} data-private-key class="password-field" type="password" animate required>
|
||||
<svg class="icon" slot="icon" xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"> <g> <rect fill="none" height="24" width="24"></rect> </g> <g> <path d="M21,10h-8.35C11.83,7.67,9.61,6,7,6c-3.31,0-6,2.69-6,6s2.69,6,6,6c2.61,0,4.83-1.67,5.65-4H13l2,2l2-2l2,2l4-4.04L21,10z M7,15c-1.65,0-3-1.35-3-3c0-1.65,1.35-3,3-3s3,1.35,3,3C10,13.65,8.65,15,7,15z"> </path> </g> </svg>
|
||||
<label slot="right" class="interact">
|
||||
<input type="checkbox" class="hidden" autocomplete="off" readonly onchange="togglePrivateKeyVisibility(this)">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user