|
2 | 2 | typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@depay/solana-web3.js'), require('@depay/web3-client-solana'), require('@depay/web3-tokens-solana'), require('react'), require('@depay/web3-blockchains')) : |
3 | 3 | typeof define === 'function' && define.amd ? define(['exports', '@depay/solana-web3.js', '@depay/web3-client-solana', '@depay/web3-tokens-solana', 'react', '@depay/web3-blockchains'], factory) : |
4 | 4 | (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ReactTokenImage = {}, global.SolanaWeb3js, global.Web3Client, global.Web3Tokens, global.React, global.Web3Blockchains)); |
5 | | -}(this, (function (exports, solanaWeb3_js, web3ClientSolana, web3TokensSolana, React, Blockchains) { 'use strict'; |
| 5 | +}(this, (function (exports, solanaWeb3_js, web3ClientSolana, Token, React, Blockchains) { 'use strict'; |
6 | 6 |
|
7 | 7 | function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } |
8 | 8 |
|
| 9 | + var Token__default = /*#__PURE__*/_interopDefaultLegacy(Token); |
9 | 10 | var React__default = /*#__PURE__*/_interopDefaultLegacy(React); |
10 | 11 | var Blockchains__default = /*#__PURE__*/_interopDefaultLegacy(Blockchains); |
11 | 12 |
|
|
71 | 72 | try { |
72 | 73 |
|
73 | 74 | let mintPublicKey = new solanaWeb3_js.PublicKey(address); |
74 | | - let metaDataPublicKey = new solanaWeb3_js.PublicKey(web3TokensSolana.Token.solana.METADATA_ACCOUNT); |
| 75 | + let metaDataPublicKey = new solanaWeb3_js.PublicKey(Token__default['default'].solana.METADATA_ACCOUNT); |
75 | 76 |
|
76 | 77 | let seed = [ |
77 | 78 | solanaWeb3_js.Buffer.from('metadata'), |
|
84 | 85 | let metaData = await web3ClientSolana.request({ |
85 | 86 | blockchain, |
86 | 87 | address: tokenMetaDataPublicKey.toString(), |
87 | | - api: web3TokensSolana.Token.solana.METADATA_LAYOUT, |
| 88 | + api: Token__default['default'].solana.METADATA_LAYOUT, |
88 | 89 | cache: 86400000, // 1 day |
89 | 90 | }); |
90 | 91 |
|
|
0 commit comments