Refactor/update readmes (#100)
* change variable names * add web3wallet examples to main readme Co-authored-by: Vanessa Mercado <finessevanes@Vanessas-MacBook-Pro.local>
This commit is contained in:
@@ -75,7 +75,7 @@ Your `.env.local` now contains the following environment variables:
|
||||
```javascript
|
||||
/* old */
|
||||
signClient.on("session_proposal", async (proposal) => {
|
||||
const { acknowledged } = await B.approve({
|
||||
const { acknowledged } = await signClient.approve({
|
||||
id: proposal.id,
|
||||
namespaces,
|
||||
});
|
||||
@@ -225,7 +225,7 @@ Your `.env.local` now contains the following environment variables:
|
||||
const iss = `did:pkh:eip155:1:${address}`;
|
||||
web3wallet.on("auth_request", async (event) => {
|
||||
// format the payload
|
||||
const message = authClient.formatMessage(event.params.cacaoPayload, iss);
|
||||
const message = web3wallet.formatMessage(event.params.cacaoPayload, iss);
|
||||
// prompt the user to sign the message
|
||||
const signature = await wallet.signMessage(message);
|
||||
// respond
|
||||
|
||||
Reference in New Issue
Block a user