Fix RNS resolving

This commit is contained in:
Victor Baranov 2020-07-10 16:15:12 +03:00
parent 045fed4a30
commit f24d1ef789
1 changed files with 2 additions and 0 deletions

View File

@ -222,10 +222,12 @@ function getNetworkEnsSupport (network) {
}
function getNetworkRnsSupport (network) {
network = parseInt(network, 10)
return (network === RSK_CODE || network === RSK_TESTNET_CODE)
}
function getRnsRegistryAddress (network) {
network = parseInt(network, 10)
if (network === RSK_CODE) {
return RNSRegistryData.address.rskMainnet
}