Closed karancoder closed 6 months ago
Issue: When calling signDirect on Leap Cosmos Metamask Snaps (v0.6.1), we are getting following error: TypeError: Cannot read properties of undefined (reading 'authInfoBytes') at CosmosSnapClient.signDirect
TypeError: Cannot read properties of undefined (reading 'authInfoBytes') at CosmosSnapClient.signDirect
Cause: There should be await in this line. requestSignature from '@leapwallet/cosmos-snap-provider' is an async function.
await
requestSignature
Fix: Add await before requestSignature.
Issue: When calling signDirect on Leap Cosmos Metamask Snaps (v0.6.1), we are getting following error:
TypeError: Cannot read properties of undefined (reading 'authInfoBytes') at CosmosSnapClient.signDirect
Cause: There should be
await
in this line.requestSignature
from '@leapwallet/cosmos-snap-provider' is an async function.Fix: Add
await
beforerequestSignature
.