gnolang / gnonative

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

chore: Set the default remote to 127.0.0.1. In useGno, initialize to testnet.gno.berty.io #80

Closed jefft0 closed 8 months ago

jefft0 commented 8 months ago

The doc for SetRemote says that the default is 127.0.0.1 . This makes sense because the toolkit shouldn't be hardwired to a particular remote like the Berty testnet. However, at the moment, the gRPC service initializes the remote to the Berty testnet. But now the example app shows how to call SetRemote to change the network, so we don't need to be hardwired to the Berty testnet.

This PR changes the gRPC service so that the default remote is 127.0.0.1 . The useGno function is changed to set the remote to the Berty testnet for use by the app. (If the app is configured for a different default network, then this is where we can set it.)