From 805160ea4969926521990388910a07f0956df383 Mon Sep 17 00:00:00 2001 From: Ben Kremer Date: Wed, 22 Mar 2023 15:28:06 +0000 Subject: [PATCH] fix(auth-wallet): build `iss` with chainId from cacaoPayload --- .../react-wallet-auth/src/views/AuthenticationRequestModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallets/react-wallet-auth/src/views/AuthenticationRequestModal.tsx b/wallets/react-wallet-auth/src/views/AuthenticationRequestModal.tsx index de984e9..5c75463 100644 --- a/wallets/react-wallet-auth/src/views/AuthenticationRequestModal.tsx +++ b/wallets/react-wallet-auth/src/views/AuthenticationRequestModal.tsx @@ -15,7 +15,7 @@ export default function AuthenticationRequestModal() { useEffect(() => { if (message) return const address = eip155Addresses[0] - const iss = `did:pkh:eip155:1:${address}` + const iss = `did:pkh:${authenticationRequest.params.cacaoPayload.chainId}:${address}` setMessage(authClient.formatMessage(authenticationRequest.params.cacaoPayload, iss)) setIss(iss) }, [authenticationRequest.params.cacaoPayload, eip155Addresses, message])