@rarible/types
Version:
`@rarible/types` is a TypeScript library that provides type definitions and interfaces for the Rarible ecosystem. This package is designed to facilitate seamless integration with Rarible's APIs and services, ensuring type safety and improved developer exp
12 lines (11 loc) • 365 B
JavaScript
import { isRealBlockchainSpecified } from "./blockchains/index.js";
/**
* @deprecated will be replaced in 0.11.0.
* Please use `import { toUnionContractAddress } from "@rarible/types"`
*/
export function toContractAddress(value) {
if (!isRealBlockchainSpecified(value)) {
throw new Error(`Not a ContractAddress: ${value}`);
}
return value;
}