Merge pull request #400 from poanetwork/vb-fix-rns

Fix RNS resolving
This commit is contained in:
Victor Baranov 2020-07-10 16:19:01 +03:00 committed by GitHub
commit f63e6c9235
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}