Skip to content

Commit d8dbecf

Browse files
committed
linting
1 parent eee3796 commit d8dbecf

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

apps/remix-ide/src/blockchain/providers/vm.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export class VMProvider {
3939
return new Promise((resolve, reject) => {
4040
this.worker.addEventListener('message', (msg) => {
4141
if (msg.data.cmd === 'sendAsyncResult' && stamps[msg.data.stamp]) {
42-
let result = msg.data.result
43-
if (stamps[msg.data.stamp].request && msg.data.result) result = msg.data.result.result
42+
const result = msg.data.result
43+
// if (stamps[msg.data.stamp].request && msg.data.result) result = msg.data.result.result
4444

4545
if (stamps[msg.data.stamp].callback) {
4646
stamps[msg.data.stamp].callback(msg.data.error, result)

libs/remix-ui/run-tab/src/lib/components/account.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -176,19 +176,19 @@ export function AccountUI(props: AccountProps) {
176176
<div className='mt-2'>
177177
<span>otherwise</span><button className='ml-2 modal-ok btn btn-sm border-primary' data-id="sign-eip-712" onClick={() => {
178178
props.modal(
179-
'Message signing with EIP-712',
179+
'Message signing with EIP-712',
180180
<div>
181181
<div>{intl.formatMessage({ id: 'udapp.EIP712-2' }, {
182-
a: (chunks) => (
183-
<a href='https://eips.ethereum.org/EIPS/eip-712' target="_blank" rel="noreferrer">
184-
{chunks}
185-
</a>
186-
)
187-
})}</div>
182+
a: (chunks) => (
183+
<a href='https://eips.ethereum.org/EIPS/eip-712' target="_blank" rel="noreferrer">
184+
{chunks}
185+
</a>
186+
)
187+
})}</div>
188188
<div>{intl.formatMessage({ id: 'udapp.EIP712-3' })}</div></div>,
189189
intl.formatMessage({ id: 'udapp.EIP712-create-template' }),
190190
() => { props.addFile('EIP-712-data.json', JSON.stringify(EIP712_Example, null, '\t')) },
191-
intl.formatMessage({ id: 'udapp.EIP712-close' }),
191+
intl.formatMessage({ id: 'udapp.EIP712-close' }),
192192
() => {})
193193
}}>Sign with EIP 712</button>
194194
</div>

libs/remix-ui/workspace/src/lib/actions/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,21 +512,21 @@ export const runScript = async (path: string) => {
512512
export const signTypedData = async (path: string) => {
513513
const typedData = await plugin.call('fileManager', 'readFile', path)
514514
const web3 = await plugin.call('blockchain', 'web3')
515-
const settings = await plugin.call('udapp', 'getSettings')
515+
const settings = await plugin.call('udapp', 'getSettings')
516516
let parsed
517517
try {
518518
parsed = JSON.parse(typedData)
519519
} catch (err) {
520520
dispatch(displayPopUp(`${path} isn't a valid JSON.`))
521521
return
522-
}
522+
}
523523

524524
try {
525525
const result = await web3.currentProvider.request({
526526
method: 'eth_signTypedData',
527527
params: [settings.selectedAccount, parsed]
528528
})
529-
529+
530530
plugin.call('terminal', 'log', { type: 'log', value: `${path} signature using ${settings.selectedAccount} : ${result}` })
531531
} catch (e) {
532532
console.error(e)

libs/remix-ui/workspace/src/lib/components/file-explorer-context-menu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,11 @@ export const FileExplorerContextMenu = (props: FileExplorerContextMenuProps) =>
234234
case 'Publish Workspace to Gist':
235235
_paq.push(['trackEvent', 'fileExplorer', 'contextMenu', 'publishWorkspace'])
236236
publishFolderToGist(path)
237-
break
238-
case 'Sign Typed Data':
237+
break
238+
case 'Sign Typed Data':
239239
_paq.push(['trackEvent', 'fileExplorer', 'contextMenu', 'signTypedData'])
240240
signTypedData(path)
241-
break
241+
break
242242
default:
243243
_paq.push(['trackEvent', 'fileExplorer', 'contextMenu', `${item.id}/${item.name}`])
244244
emit && emit({ ...item, path: [path]} as customAction)

0 commit comments

Comments
 (0)