Revert "Refactor/fix readme typo (#99)"
This reverts commit c55f3b5c75.
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
NEXT_PUBLIC_PROJECT_ID=7f0a189637fc935f70a6c260c11b551f
|
||||
NEXT_PUBLIC_PROJECT_ID=...
|
||||
NEXT_PUBLIC_RELAY_URL=wss://relay.walletconnect.com
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ Your `.env.local` now contains the following environment variables:
|
||||
```javascript
|
||||
/* old */
|
||||
signClient.on("session_proposal", async (proposal) => {
|
||||
const { acknowledged } = await signClient.approve({
|
||||
const { acknowledged } = await B.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 = web3wallet.formatMessage(event.params.cacaoPayload, iss);
|
||||
const message = authClient.formatMessage(event.params.cacaoPayload, iss);
|
||||
// prompt the user to sign the message
|
||||
const signature = await wallet.signMessage(message);
|
||||
// respond
|
||||
|
||||
@@ -29,7 +29,6 @@ export default function SessionProposalModal() {
|
||||
|
||||
// Get proposal data and wallet address from store
|
||||
const proposal = ModalStore.state.data?.proposal
|
||||
console.log('ModalStore.state.data', ModalStore.state.data)
|
||||
|
||||
// Ensure proposal is defined
|
||||
if (!proposal) {
|
||||
@@ -73,22 +72,11 @@ export default function SessionProposalModal() {
|
||||
}
|
||||
})
|
||||
|
||||
// await web3wallet.approveSession({
|
||||
// id,
|
||||
// relayProtocol: relays[0].protocol,
|
||||
// namespaces
|
||||
// })
|
||||
|
||||
const session = await web3wallet.approveSession({
|
||||
await web3wallet.approveSession({
|
||||
id,
|
||||
relayProtocol: relays[0].protocol,
|
||||
namespaces
|
||||
})
|
||||
console.log('session: ', session)
|
||||
console.log('id: ', id)
|
||||
console.log('relayProtocol: ', relays[0].protocol)
|
||||
|
||||
console.log('in SessionProposalModal: namespaces', namespaces)
|
||||
}
|
||||
ModalStore.close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user