|
|
@ -103,24 +103,21 @@ export function AccountUI (props: AccountProps) { |
|
|
|
|
|
|
|
|
|
|
|
const passphraseCreationPrompt = () => { |
|
|
|
const passphraseCreationPrompt = () => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div> Please provide a Passphrase for the account creation |
|
|
|
<div className='d-flex flex-column'> |
|
|
|
<div> |
|
|
|
Please provide a Passphrase for the account creation |
|
|
|
<input id="prompt1" type="password" name='prompt_text' style={{ width: '100%' }} onInput={handlePassphrase} /> |
|
|
|
<input id="prompt1" type="password" name='prompt_text' className='w-100 py-2' onInput={handlePassphrase} /> |
|
|
|
<br /> |
|
|
|
<input id="prompt2" type="password" name='prompt_text' className='w-100' onInput={handleMatchPassphrase} /> |
|
|
|
<br /> |
|
|
|
|
|
|
|
<input id="prompt2" type="password" name='prompt_text' style={{ width: '100%' }} onInput={handleMatchPassphrase} /> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const signMessagePrompt = () => { |
|
|
|
const signMessagePrompt = () => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div> <FormattedMessage id='udapp.enterAMessageToSign' /> |
|
|
|
|
|
|
|
<div> |
|
|
|
<div> |
|
|
|
|
|
|
|
<FormattedMessage id='udapp.enterAMessageToSign' /> |
|
|
|
<textarea |
|
|
|
<textarea |
|
|
|
id="prompt_text" |
|
|
|
id="prompt_text" |
|
|
|
className='bg-light' |
|
|
|
className='bg-light text-light' |
|
|
|
data-id="signMessageTextarea" |
|
|
|
data-id="signMessageTextarea" |
|
|
|
style={{ width: '100%' }} |
|
|
|
style={{ width: '100%' }} |
|
|
|
rows={4} |
|
|
|
rows={4} |
|
|
@ -129,16 +126,15 @@ export function AccountUI (props: AccountProps) { |
|
|
|
defaultValue={messageRef.current} |
|
|
|
defaultValue={messageRef.current} |
|
|
|
></textarea> |
|
|
|
></textarea> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const signedMessagePrompt = (msgHash: string, signedData: string) => { |
|
|
|
const signedMessagePrompt = (msgHash: string, signedData: string) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div> |
|
|
|
<div className="d-flex flex-column"> |
|
|
|
<b><FormattedMessage id='udapp.hash' />:</b><br /> |
|
|
|
<label className='text-uppercase'><FormattedMessage id='udapp.hash' /></label> |
|
|
|
<span id="remixRunSignMsgHash" data-id="settingsRemixRunSignMsgHash">{msgHash}</span> |
|
|
|
<span id="remixRunSignMsgHash" data-id="settingsRemixRunSignMsgHash">{msgHash}</span> |
|
|
|
<br /><b><FormattedMessage id='udapp.signature' />:</b><br /> |
|
|
|
<label className='pt-2 text-uppercase'><FormattedMessage id='udapp.signature' /></label> |
|
|
|
<span id="remixRunSignMsgSignature" data-id="settingsRemixRunSignMsgSignature">{signedData}</span> |
|
|
|
<span id="remixRunSignMsgSignature" data-id="settingsRemixRunSignMsgSignature">{signedData}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
) |
|
|
|
) |
|
|
@ -160,7 +156,7 @@ export function AccountUI (props: AccountProps) { |
|
|
|
</CustomTooltip> |
|
|
|
</CustomTooltip> |
|
|
|
</label> |
|
|
|
</label> |
|
|
|
<div className="udapp_account"> |
|
|
|
<div className="udapp_account"> |
|
|
|
<select id="txorigin" data-id="runTabSelectAccount" name="txorigin" className="form-control udapp_select custom-select pr-4" value={selectedAccount} onChange={(e) => { props.setAccount(e.target.value) }}> |
|
|
|
<select id="txorigin" data-id="runTabSelectAccount" name="txorigin" className="form-control udapp_select custom-select pr-4" value={selectedAccount||""} onChange={(e) => { props.setAccount(e.target.value) }}> |
|
|
|
{ |
|
|
|
{ |
|
|
|
accounts.map((value, index) => <option value={value} key={index}>{ loadedAccounts[value] }</option>) |
|
|
|
accounts.map((value, index) => <option value={value} key={index}>{ loadedAccounts[value] }</option>) |
|
|
|
} |
|
|
|
} |
|
|
|