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

Minor improvements #24

Merged
merged 4 commits into from
Feb 2, 2024
Merged

Minor improvements #24

merged 4 commits into from
Feb 2, 2024

Conversation

Hugoo
Copy link
Contributor

@Hugoo Hugoo commented Feb 2, 2024

No description provided.

## Contents

- [`convenience`](./convenience): Address Checks and EOA creation
- [`create-profile`](./create-profile): Universal Profile Creation
- [`universal-profile`](./universal-profile): Universal Profile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- [`universal-profile`](./universal-profile): Universal Profile
- [`universal-profile`](./universal-profile): Universal Profile Creation and Interaction

I am not 100% sure about the description, but it should indicate what to expect within the folder.

@@ -8,7 +7,7 @@ import KeyManager from '@lukso/lsp-smart-contracts/artifacts/LSP6KeyManager.json
// Static variables
const RPC_ENDPOINT = 'https://rpc.testnet.lukso.gateway.fm';
const IPFS_GATEWAY = 'https://api.universalprofile.cloud/ipfs';
const CHAIN_ID = 2828;
const CHAIN_ID = 4201;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha, good catch ✅

If this is (or we have) a script for dApp devs, maybe these should not be static.

import { ethers } from 'ethers';
const provider = new ethers.BrowserProvider(window.lukso);

const {chainId } = provider.getNetwork()
const universalProfileAddress = await provider.send('eth_requestAccounts', []);

Just as a side note.

@Hugoo Hugoo merged commit 7de32b0 into main Feb 2, 2024
1 check passed
@Hugoo Hugoo deleted the minor-improvmeents branch February 2, 2024 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants