class AddNewAddressPresenter extends BasePresenter<AddNewAddressContract.View> implements AddNewAddressContract.Presenter {

    @Override
    public boolean checkAddress(String address) {

        int errMsgCode = JZWalletUtil.checkToAddressErrMsg(address);
        if (errMsgCode == 0) {
            getView().setAddressVisibility(View.GONE);
        } else {
            getView().showAddressError(string(errMsgCode));
        }
        return errMsgCode == 0;
    }

}