Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace L16 RPC URL to testnet in tools #646

Merged
merged 2 commits into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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