Content pfp
Content
@
0 reply
0 recast
0 reaction

Johanna 🎩  pfp
Johanna 🎩
@johanna
When accessing a privy signer through the embedded wallet, how can I get all signer methods? the signer is said to return JsonRpcSigner from ethers, however it is missing the following properties: address, signTypedData, getNonce, populateCall.
1 reply
0 recast
0 reaction

Johanna 🎩  pfp
Johanna 🎩
@johanna
I need to access the signer.signTypedData() method but it is not available/does not exist from the signer Privy is giving me, is there a workaround?
1 reply
0 recast
0 reaction

Henri Stern κ™ͺ pfp
Henri Stern κ™ͺ
@henri
@boop or @payton may have thoughts?
1 reply
0 recast
0 reaction

andrew pfp
andrew
@boop
@johanna - for legacy reasons the built-in ethers provider is v5. If you need those functions, you can follow this guide with a newer version! https://docs.privy.io/guide/expo/embedded/3p-libraries#integrating-with-ethers Hope that helps!
2 replies
0 recast
1 reaction

Johanna 🎩  pfp
Johanna 🎩
@johanna
@boop Is the wallet.provider.request() seen in these docs the same as embeddedWallet? I am using `privy-io/react-auth` and not Expo/React Native package, so not sure if its different, because embeddedWallet.provider.request() does not exist. Seems I can only acccess the embeddedWallet.getEthersProvider() from React
1 reply
0 recast
0 reaction

andrew pfp
andrew
@boop
Oh! Sorry, wrong docs. It might be just easiest for you to use the ethers 5 syntax, which is just _signedTypedData. Otherwise to use ethers v6, const eip1193 = await wallet.getEthereumProvider(); const provider = new ethers.BrowserProvider(eip1193); const signer = await provider.getSigner(); Should work?
1 reply
0 recast
1 reaction