trufflesuite/truffle

View on GitHub
packages/codec-components/src/react/components/codec/format.errors.storage-not-supplied-error.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from "react";
import type { Format } from "@truffle/codec";
import { createCodecComponent } from "../../utils/create-codec-component";
import { Code } from "../common/code";

export const { StorageNotSuppliedError } = createCodecComponent(
  "StorageNotSuppliedError",
  ({ kind, slot }: Format.Errors.StorageNotSuppliedError) => (
    <Code title={kind}>? (Slot {slot.toString()})</Code>
  )
);