diff --git a/config.json b/config.json index ce670a99b..e13fb1b02 100644 --- a/config.json +++ b/config.json @@ -2,7 +2,7 @@ "QR_READER_BITCOIN_DEFAULT_NETWORK_MAINNET": "BITCOIN", "QR_READER_BITCOIN_DEFAULT_NETWORK_TESTNET": "BITCOIN_TESTNET", "RIF_RELAY_SERVER_MAINNET":"https://relay.rif-wallet-services.mainnet.rifcomputing.net", - "RIF_RELAY_SERVER_TESTNET":"https://relay.rif-wallet-services.testnet.rifcomputing.net", + "RIF_RELAY_SERVER_TESTNET":"https://v2.relay.rif-wallet-services.testnet.rifcomputing.net", "SMART_WALLET_FACTORY_ADDRESS_MAINNET":"0x9eebec6c5157bee13b451b1dfe1ee2cb40846323", "SMART_WALLET_FACTORY_ADDRESS_TESTNET":"0xBaDb31cAf5B95edd785446B76219b60fB1f07233", "RELAY_VERIFIER_ADDRESS_MAINNET":"0x5C9c7d96E6C59E55dA4dCf7F791AE58dAF8DBc86", diff --git a/package.json b/package.json index 9b6b1d913..e423990b4 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "@react-navigation/stack": "^6.0.9", "@reduxjs/toolkit": "^1.9.0", "@rsksmart/rif-id-mnemonic": "^0.1.1", - "@rsksmart/rif-relay-light-sdk": "^1.0.3", + "@rsksmart/rif-relay-light-sdk": "^1.0.5", "@rsksmart/rif-wallet-abi-enhancer": "^1.0.5", "@rsksmart/rif-wallet-adapters": "^1.0.0", "@rsksmart/rif-wallet-bitcoin": "^1.2.0", diff --git a/src/core/setup.ts b/src/core/setup.ts index 4947167a4..0c8635361 100644 --- a/src/core/setup.ts +++ b/src/core/setup.ts @@ -55,7 +55,9 @@ export const createRIFWalletFactory = SETTINGS.RIF_RELAY_SERVER, chainTypesById[chainId], ), + relayVersion: 2, } + return RIFWallet.create( wallet.connect(jsonRpcProvider), onRequest, diff --git a/yarn.lock b/yarn.lock index 7ece3fe12..7dca2caf6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2023,7 +2023,7 @@ lodash "^4.17.15" randombytes "^2.1.0" -"@rsksmart/rif-relay-light-sdk@*", "@rsksmart/rif-relay-light-sdk@^1.0.3": +"@rsksmart/rif-relay-light-sdk@*": version "1.0.3" resolved "https://npm.pkg.github.com/download/@rsksmart/rif-relay-light-sdk/1.0.3/2dfc039b136c83259f5337886df2187e424b7e09#2dfc039b136c83259f5337886df2187e424b7e09" integrity sha512-qUxgnN0h1hS6k2qqtSjJMU6oZo5AiLDFDe4mw/E+nNKeWqs7bWCCHou72XBqRKrFDTG/ZuGeVZeu1s5sM7ibhg== @@ -2032,6 +2032,15 @@ axios "^1.2.3" ethers "^5.7.2" +"@rsksmart/rif-relay-light-sdk@^1.0.5": + version "1.0.5" + resolved "https://npm.pkg.github.com/download/@rsksmart/rif-relay-light-sdk/1.0.5/e1c52dc436be29f518fff289b122803ccd72ea92#e1c52dc436be29f518fff289b122803ccd72ea92" + integrity sha512-DnDr2omusqy91yajEWMUof7H2gySK8rWyIu3OsHpqv/NcrulFpmQ+eAemweq7jTj4fsFW0cEewZl3TxdQ7oXEw== + dependencies: + "@ethersproject/abstract-provider" "^5.7.0" + axios "^1.2.3" + ethers "^5.7.2" + "@rsksmart/rif-wallet-abi-enhancer@*": version "1.0.0" resolved "https://npm.pkg.github.com/download/@rsksmart/rif-wallet-abi-enhancer/1.0.0/6f6838ac92fb4be65a225dca5f8c9ccfaa137a84#6f6838ac92fb4be65a225dca5f8c9ccfaa137a84"