gnolang / gnonative

Develop for Gno using your app's native language
Apache License 2.0
9 stars 9 forks source link

chore: Change gRPC Call method to streaming #76

Closed jefft0 closed 10 months ago

jefft0 commented 10 months ago

The gRPC Call method can take a long time and return multiple events, so change it to a gRPC stream. This PR has two commits. In the first commit,

In the second commit, don't use ConnectRPC error details because of a communication bug in React Native for returning the error object in the gRPC stream. Instead, parse the error string to get the error number from "ErrType(#ErrNumber)".