UNPKG

@metaplex-foundation/umi-web3js-adapters

Version:

A helper package to transform web3.js types to and from umi types

12 lines (9 loc) 289 B
import { PublicKey } from '@solana/web3.js'; function fromWeb3JsPublicKey(publicKey) { return publicKey.toBase58(); } function toWeb3JsPublicKey(publicKey) { return new PublicKey(publicKey); } export { fromWeb3JsPublicKey, toWeb3JsPublicKey }; //# sourceMappingURL=PublicKey.mjs.map