Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniket-Engg committed Dec 16, 2024
1 parent f69a3be commit 296e808
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion apps/remix-ide/src/app/providers/environment-explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export class EnvironmentExplorer extends ViewPlugin {
title='Deploy to an In-browser Saved VM State.'
hScrollable={false}
>{this.providers['Saved VM States'].map(provider => {
const {latestBlock, timestamp} = JSON.parse(provider.description)
const { latestBlock, timestamp } = JSON.parse(provider.description)
return <RemixUIGridCell
plugin={this}
title={provider.displayName}
Expand Down
22 changes: 11 additions & 11 deletions apps/remix-ide/src/app/udapp/run-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,23 +263,23 @@ export class RunTab extends ViewPlugin {
if (ssExists) {
const savedStatesDetails = await this.call('fileManager', 'readdir', '.states/saved_states')
const savedStatesFiles = Object.keys(savedStatesDetails)
let pos = 10
const pos = 10
for (const filePath of savedStatesFiles) {
let stateDetail = await this.call('fileManager', 'readFile', filePath)
stateDetail = JSON.parse(stateDetail)
const providerName = 'svs-' + stateDetail.stateName
descriptions[providerName] = JSON.stringify({
name: providerName,
latestBlock: stateDetail.latestBlockNumber,
timestamp: stateDetail.savingTimestamp
})
name: providerName,
latestBlock: stateDetail.latestBlockNumber,
timestamp: stateDetail.savingTimestamp
})
const svsProvider = new SavedVMStateProvider({
name: providerName,
displayName: stateDetail.stateName,
kind: 'provider',
description: descriptions[providerName],
methods: ['sendAsync', 'init'],
version: packageJson.version
name: providerName,
displayName: stateDetail.stateName,
kind: 'provider',
description: descriptions[providerName],
methods: ['sendAsync', 'init'],
version: packageJson.version
}, this.blockchain, stateDetail.forkName)
this.engine.register(svsProvider)
await addProvider(pos + 1, providerName, stateDetail.stateName, false, false, true, stateDetail.forkName)
Expand Down

0 comments on commit 296e808

Please sign in to comment.