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 17, 2024
1 parent 3c844b5 commit 0127280
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions apps/remix-ide/src/app/udapp/run-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,24 +260,24 @@ export class RunTab extends ViewPlugin {
// Saved VM States
const addSVSProvider = async(stateFilePath, pos) => {
let stateDetail = await this.call('fileManager', 'readFile', stateFilePath)
stateDetail = JSON.parse(stateDetail)
const providerName = 'vm-svs-' + stateDetail.stateName
descriptions[providerName] = JSON.stringify({
name: providerName,
latestBlock: stateDetail.latestBlockNumber,
timestamp: stateDetail.savingTimestamp
})
// Create and register provider plugin for saved states
const svsProvider = new SavedVMStateProvider({
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, providerName, stateDetail.stateName, false, false, true, stateDetail.forkName)
stateDetail = JSON.parse(stateDetail)
const providerName = 'vm-svs-' + stateDetail.stateName
descriptions[providerName] = JSON.stringify({
name: providerName,
latestBlock: stateDetail.latestBlockNumber,
timestamp: stateDetail.savingTimestamp
})
// Create and register provider plugin for saved states
const svsProvider = new SavedVMStateProvider({
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, providerName, stateDetail.stateName, false, false, true, stateDetail.forkName)
}

this.on('filePanel', 'workspaceInitializationCompleted', async () => {
Expand Down

0 comments on commit 0127280

Please sign in to comment.