> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://v3.viem.sh/api/mcp` to find what you need.

# AbiConstructor Errors

:::info
`AbiConstructor` is a re-export of ox's [`AbiConstructor`](https://oxlib.sh/api/AbiConstructor/errors). Refer to the ox documentation for the full reference.
:::

## `AbiConstructor.BytecodeMismatchError`

Throws when the provided `data` does not begin with the provided `bytecode`.

### Examples

```ts twoslash
// @noErrors
import { AbiConstructor } from 'viem/utils'

AbiConstructor.decode(
  AbiConstructor.from('constructor(address)'),
  { bytecode: '0x6080...', data: '0xdeadbeef' }
)
// @error: AbiConstructor.BytecodeMismatchError: Provided `data` does not start with the provided `bytecode`.
```
