updated code for switch height on testnet