Skip to content

Commit

Permalink
Merge pull request #312 from ERC725Alliance/update-docs-testnet
Browse files Browse the repository at this point in the history
docs: update RPC from L16 to testnet
  • Loading branch information
CallumGrindle authored Oct 5, 2023
2 parents 0d28b13 + 67c0b4f commit 97202e0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
7 changes: 4 additions & 3 deletions docs/classes/ERC725.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ myErc725.checkPermissions(requiredPermissions, grantedPermissions);
```

---

## decodeData

```js
Expand Down Expand Up @@ -1459,7 +1460,7 @@ myErc725.supportsInterface('0xfd4d5c50');

ERC725.supportsInterface('0xfd4d5c50', {
address: '0xe408BDDbBAB1985006A2c481700DD473F932e5cB',
rpcUrl: 'https://rpc.l16.lukso.network',
rpcUrl: 'https://rpc.testnet.lukso.network',
});
// false
```
Expand All @@ -1469,8 +1470,8 @@ myErc725.supportsInterface('LSP0ERC725Account');
// false

ERC725.supportsInterface('LSP0ERC725Account', {
address: '0xe408BDDbBAB1985006A2c481700DD473F932e5cB',
rpcUrl: 'https://rpc.l16.lukso.network',
address: '0x0Dc07C77985fE31996Ed612F568eb441afe5768D',
rpcUrl: 'https://rpc.testnet.lukso.network',
});
// true
```
9 changes: 3 additions & 6 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ const schemas = [
},
];

const address = '0x0c03fba782b07bcf810deb3b7f0595024a444f4e';
const RPC_URL = 'https://rpc.l16.lukso.network';
const address = '0x0Dc07C77985fE31996Ed612F568eb441afe5768D';
const RPC_URL = 'https://rpc.testnet.lukso.network';
const config = {
ipfsGateway: 'https://YOUR-IPFS-GATEWAY/ipfs/',
};
Expand All @@ -79,10 +79,7 @@ await erc725.getData('SupportedStandards:LSP3Profile');
}
*/

await erc725.getData([
'LSP3Profile',
'SupportedStandards:LSP3Profile',
]);
await erc725.getData(['LSP3Profile', 'SupportedStandards:LSP3Profile']);
/**
{
LSP3Profile: {
Expand Down
4 changes: 2 additions & 2 deletions docs/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

0 comments on commit 97202e0

Please sign in to comment.