Skip to content

Commit

Permalink
Merge pull request #646 from lukso-network/tools
Browse files Browse the repository at this point in the history
Replace L16 RPC URL to testnet in tools
  • Loading branch information
Hugoo authored Sep 26, 2023
2 parents 2255a33 + a154eba commit 8886d4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/tools/erc725js/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ An RPC URL can be passed when instantiating the `ERC725` class.
```javascript
import ERC725 from '@erc725/erc725.js';

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

const erc725 = new ERC725([], '0x...', RPC_URL);
```
Expand Down Expand Up @@ -47,7 +47,7 @@ import Web3 from 'web3';
import ERC725 from '@erc725/erc725.js';

const web3provider = new Web3(
new Web3.providers.HttpProvider('https://rpc.l16.lukso.network'),
new Web3.providers.HttpProvider('https://rpc.testnet.lukso.network'),
);

const erc725 = new ERC725([], '0x...', web3provider);
Expand Down
6 changes: 3 additions & 3 deletions docs/tools/lsp-factoryjs/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 8886d4a

Please sign in to comment.