Refcount warning (#4330)

This commit is contained in:
Jaco Greeff 2021-01-06 14:46:57 +01:00 committed by GitHub
parent 2a15425e9d
commit 862663c2b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,6 +165,9 @@ function Transfer ({ className = '', onClose, recipientId: propRecipientId, send
value={isAll}
/>
)}
{!isProtected && accountInfo && accountInfo.refcount && !accountInfo.refcount.isZero() && (
<article className='warning'>{t<string>('There is an existing reference count on the sender account. As such the account cannot be reaped from the state.')}</article>
)}
</Modal.Column>
<Modal.Column>
<p>{t<string>('If the recipient account is new, the balance needs to be more than the existential deposit. Likewise if the sending account balance drops below the same value, the account will be removed from the state.')}</p>