trufflesuite/truffle

View on GitHub
packages/codec-components/src/utils/type-guards/decoder-error/bytes-static-error.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { Format } from "@truffle/codec";
import { decoderErrorTypeGuardHelper } from "./helper";
import { bytesPaddingErrorKinds } from "./bytes-padding-error";

export const [isBytesStaticError, bytesStaticErrorKinds] =
  decoderErrorTypeGuardHelper<Format.Errors.BytesStaticError>(
    ...bytesPaddingErrorKinds
  );