Skip to content

Commit

Permalink
Merge pull request #221 from lukso-network/fix-doc
Browse files Browse the repository at this point in the history
docs: replace l16 with testnet for RPC links
  • Loading branch information
CallumGrindle authored Sep 28, 2023
2 parents a7bd03b + e44e46d commit ca39a3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ npm install @lukso/lsp-factory.js
```javascript
import { LSPFactory } from '@lukso/lsp-factory.js';

const provider = 'https://rpc.l16.lukso.network'; // RPC url used to connect to the network
const provider = 'https://rpc.testnet.lukso.network'; // RPC url used to connect to the network

const lspFactory = new LSPFactory(provider, {
deployKey: '0x...'; // Private key of the account which will deploy UPs
Expand Down
6 changes: 3 additions & 3 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ npm install @lukso/lsp-factory.js
```javascript
import { LSPFactory } from '@lukso/lsp-factory.js';

const provider = 'https://rpc.l16.lukso.network';
const provider = 'https://rpc.testnet.lukso.network';

const lspFactory = new LSPFactory(provider, {
deployKey: '0x...', // Private key of the account which will deploy smart contracts
Expand Down Expand Up @@ -116,7 +116,7 @@ const myUPAddress = myContracts.LSP0ERC725Account.address;
When instantiating LSPFactory options can be passed to specify parameters such as `chainId` and `ipfsGateway`.

```javascript title="Instantiating LSPFactory with custom options set"
const lspFactory = new LSPFactory('https://rpc.l16.lukso.network', {
const lspFactory = new LSPFactory('https://rpc.testnet.lukso.network', {
deployKey: '0x...',
chainId: 2828,
ipfsGateway: 'https://ipfs.infura.io:5001',
Expand All @@ -138,7 +138,7 @@ If no value is set here, LSPFactory will attempt to sign transactions via a brow
`ipfsGateway` is used to specify the IPFS node which should be interacted with for uploading and retrieving metadata. `ipfsGateway` can be either a URL string or an object as defined by the [IPFS-HTTP Client](https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-client#createoptions) library which is used internally to interact with the IPFS node.

```javascript title="Instantiating LSPFactory with custom ipfsGateway options set"
const lspFactory = new LSPFactory('https://rpc.l16.lukso.network', {
const lspFactory = new LSPFactory('https://rpc.testnet.lukso.network', {
deployKey: '0x...',
chainId: 2828,
ipfsGateway: {
Expand Down

0 comments on commit ca39a3a

Please sign in to comment.