diff --git a/config/config.js b/config/config.js index 968745e59..d7ff36187 100644 --- a/config/config.js +++ b/config/config.js @@ -22,6 +22,10 @@ config.COSMOS_CHAIN_ID = 'likecoin-public-testnet-5'; config.ISCN_DEV_LCD_ENDPOINT = 'localhost:1317'; config.ISCN_DEV_CHAIN_ID = 'iscn-dev-chain'; config.COSMOS_DENOM = 'nanoekil'; +config.NFT_RPC_ENDPOINT = 'https://node.testnet.like.co'; +config.NFT_SIGNING_RPC_ENDPOINT = 'https://node.testnet.like.co'; +config.NFT_CHAIN_ID = 'likecoin-public-testnet-5'; +config.NFT_COSMOS_DENOM = 'nanoekil'; config.ARWEAVE_LIKE_TARGET_ADDRESS = ''; config.IPFS_ENDPOINT = 'https://ipfs.infura.io:5001/api/v0'; diff --git a/src/util/cosmos/nft.js b/src/util/cosmos/nft.js index f2734ca65..d0227c5fa 100644 --- a/src/util/cosmos/nft.js +++ b/src/util/cosmos/nft.js @@ -7,7 +7,7 @@ import { PageRequest } from 'cosmjs-types/cosmos/base/query/v1beta1/pagination'; import { getQueryClient } from '.'; import { getISCNPrefix } from './iscn'; import { LIKER_NFT_PRIVATE_KEY } from '../../../config/secret'; -import { NFT_RPC_ENDPOINT } from '../../../config/config'; +import { NFT_RPC_ENDPOINT, NFT_SIGNING_RPC_ENDPOINT } from '../../../config/config'; let queryClient = null; let signingClient = null; @@ -35,7 +35,7 @@ export async function createNFTSigningClient(privateKey) { const signer = await DirectSecp256k1Wallet.fromKey(privateKeyBytes, 'like'); const [wallet] = await signer.getAccounts(); const client = new ISCNSigningClient(); - await client.connectWithSigner(NFT_RPC_ENDPOINT, signer); + await client.connectWithSigner(NFT_SIGNING_RPC_ENDPOINT, signer); return { client, wallet }; }