Bug fix: if statement wrongfully rechecked testnet instead of mainnet.