@walletconnect/react-native-compat 2.18.1-canary-ca-3 → 2.18.1-canary-ca-5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -283,10 +283,7 @@ class RNWalletConnectModuleModule internal constructor(context: ReactApplication
283
283
  initialTxnSig = initialSignedTransaction,
284
284
  )
285
285
  }
286
-
287
- val gson = Gson()
288
- val resultJson: JsonElement = gson.toJsonTree(result)
289
- promise.resolve(gson.toJson(resultJson))
286
+ promise.resolve(result?.initialTxnHash)
290
287
  } catch (e: Exception) {
291
288
  // In case of an error, reject the promise
292
289
  promise.reject("ERROR", "Yttrium getERC20Balance Error:" + e.message, e)
package/ios/Yttrium.swift CHANGED
@@ -367,7 +367,7 @@ class Yttrium: NSObject {
367
367
  if let dict = params as? [String: Any],
368
368
  let bridgeSignedTransactions = dict["bridgeSignedTransactions"] as? Array<String>,
369
369
  let initialSignedTransaction = dict["initialSignedTransaction"] as? String,
370
- let orchestrationId = dict["initialSignedTransaction"] as? String {
370
+ let orchestrationId = dict["orchestrationId"] as? String {
371
371
 
372
372
  if((client) != nil) {
373
373
 
@@ -379,7 +379,7 @@ class Yttrium: NSObject {
379
379
 
380
380
  let result = try await client?.execute(uiFields: uiFields, routeTxnSigs: bridgeSignedTransactions, initialTxnSig: initialSignedTransaction)
381
381
  print("execute success", orchestrationId, result)
382
- resolve(true)
382
+ resolve(result?.initialTxnHash)
383
383
  } else {
384
384
  throw CustomError(message: "execute failed: client doesn't exist")
385
385
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walletconnect/react-native-compat",
3
3
  "description": "Shims for WalletConnect Protocol in React Native Projects",
4
- "version": "2.18.1-canary-ca-3",
4
+ "version": "2.18.1-canary-ca-5",
5
5
  "author": "WalletConnect, Inc. <walletconnect.com>",
6
6
  "homepage": "https://github.com/walletconnect/walletconnect-monorepo/",
7
7
  "license": "Apache-2.0",