const setSubnodeOwner = setSubnodeOwnerTx( prepSub, prepDomain, ZINC_ETH_ADDRESS ) const setResolver = setResolverTx(prepSub, prepDomain) const setAddr = setAddrTx(prepSub, prepDomain, address) const setSubnodeOwnerToUser = setSubnodeOwnerTx( prepSub, prepDomain, ownerAddress ) const setSubnodeOwnerTx = (....){ const node = namehash.hash(domain) const label = web3.utils.sha3(sub) const txData = { nonce: web3.utils.toHex(transactionNonce), gasLimit: web3.utils.toHex(DEFAULT_GAS_LIMIT), gasPrice: web3.utils.toHex(getGasPrice()), to: ENS_REGISTRY_ADDRESS, from: ZINC_ETH_ADDRESS, data: ensRegistry.methods .setSubnodeOwner(node, label, ownerAdress) .encodeABI() } return signTx(txData) }