Skip to content

TevmLoadStateError

TevmLoadStateError: InternalError

Error type for tevmLoadState.

This type represents the possible errors that can occur during the execution of the tevmLoadState method.

Example

import { createClient } from 'tevm'
import { loadStateHandler } from 'tevm/actions'
import fs from 'fs'
const client = createClient()
const loadState = loadStateHandler(client)
const state = JSON.parse(fs.readFileSync('state.json'))
const result = await loadState({ state })
if (result.errors) {
console.error('Failed to load state:', result.errors)
}

See

InternalError

Defined in

packages/actions/src/LoadState/TevmLoadStateError.ts:26