validate (stringError) {
    const errors = []
    if (!this.verifySignature()) {
      errors.push('Invalid Signature')
    }

    if (this.getBaseFee().cmp(new BN(this.gasLimit)) > 0) {
      errors.push([`gas limit is to low. Need at least ${this.getBaseFee()}`])
    }

    if (stringError === undefined || stringError === false) {
      return errors.length === 0
    } else {
      return errors.join(' ')
    }
  }
/**
   * validates the signature and checks to see if it has enough gas
   * @param {Boolean} [stringError=false] whether to return a string with a dscription of why the validation failed or return a Bloolean
   * @return {Boolean|String}
   */
validates the signature and checks to see if it has enough gas
@param {Boolean} [stringError=false] whether to return a string with a dscription of why the validation failed or return a Bloolean
@return {Boolean|String}
validates the signature and checks to see if it has enough gas @param { Boolean } [ stringError = false ] whether to return a string with a dscription of why the validation failed or return a Bloolean @return { Boolean|String }
validate (stringError) {
    const errors = []
    if (!this.verifySignature()) {
      errors.push('Invalid Signature')
    }
    if (this.getBaseFee().cmp(new BN(this.gasLimit)) > 0) {
      errors.push([`gas limit is to low. Need at least ${this.getBaseFee()}`])
    }
    if (stringError === undefined || stringError === false) {
      return errors.length === 0
    } else {
      return errors.join(' ')
    }
  }
validate ( stringError ) { const errors = [ ] if ( ! this . verifySignature ( ) ) { errors . push ( 'Invalid Signature' ) } if ( this . getBaseFee ( ) . cmp ( new BN ( this . gasLimit ) ) > 0 ) { errors . push ( [ ` ${ this . getBaseFee ( ) } ` ] ) } if ( stringError === undefined || stringError === false ) { return errors . length === 0 } else { return errors . join ( ' ' ) } }
validates the signature and checks to see if it has enough gas
 @param {Boolean} [stringError=false] whether to return a string with a dscription of why the validation failed or return a Bloolean
 @return {Boolean|String}
validates the signature and checks to see if it has enough gas @param { Boolean } [ stringError = false ] whether to return a string with a dscription of why the validation failed or return a Bloolean @return { Boolean|String }