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:
vanes
2023-01-05 11:00:23 -07:00
committed by GitHub
co-authored by Vanessa Mercado
parent f3a04a8250
commit 90ea03070d
2 changed files with 12 additions and 6 deletions
+2 -2
View File
@@ -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