Hashpack / hashconnect

Hashconnect library, readme in progress
BSD Zero Clause License
46 stars 38 forks source link

TypeError: hc.transactionResolver is not a function #161

Closed renchey closed 10 months ago

renchey commented 2 years ago

Got a NextJS project here and struggling to get transactions working, well responses at least!

I am using the Hashconnect service as a context wrapped about the app but also same result on a simple page with HC.

The transaction is sending ok and being paid via Hashpack Popup but the response is not being handled by the NPM

I can't see any writeup's for hc.transactionresolver, but its seems to be a persistent problem at least with React/NextJS.

I have tried a few things around resolver, but no luck!

let transResolve = await new Promise<MessageTypes.TransactionResponse>( (resolve) => (hashconnect.transactionResolver = resolve) ); - no error here, but still same issue from HC NPM

payModule

hashconnectAPIProvider

error

Appreciate any assistance :)