Skip to content

Commit

Permalink
Merge branch 'main' into swell
Browse files Browse the repository at this point in the history
  • Loading branch information
bgravenorst authored Dec 18, 2024
2 parents 2ad50ef + c30059a commit 3f90233
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wallet/connect/metamask-sdk/mobile/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class SomeModel(context: Context) {

// To use your own node (for example, with Hardhat) to make read-only requests, specify your
// node's chain ID and RPC URL using the readonlyRPCMap option in SDKOptions.
val readonlyRPCMap = mapOf("0x1" to "hptts://www.testrpc.com")
val readonlyRPCMap = mapOf("0x1" to "https://www.testrpc.com")

// Use callbacks.
val ethereum = Ethereum(context, dappMetadata, SDKOptions(infuraAPIKey, readonlyRPCMap))
Expand Down Expand Up @@ -124,7 +124,7 @@ class SomeModel(context: Context) {

// To use your own node (for example, with Hardhat) to make read-only requests, specify your
// node's chain ID and RPC URL using the readonlyRPCMap option in SDKOptions.
val readonlyRPCMap = mapOf("0x1" to "hptts://www.testrpc.com")
val readonlyRPCMap = mapOf("0x1" to "https://www.testrpc.com")

// Use coroutines.
val coroutineScope = rememberCoroutineScope()
Expand Down Expand Up @@ -197,8 +197,8 @@ class EthereumFlowViewModel @Inject constructor(
): ViewModel() {

val ethereumFlow: Flow<EthereumState> get() = ethereum.ethereumState
// Wrapper function to connect the dapp.

// Wrapper function to connect the dapp.
suspend fun connect(): Result {
return ethereum.connect()
}
Expand Down

0 comments on commit 3f90233

Please sign in to comment.