Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

RFQ-T: validate assetData & add more tests #2552

Merged
merged 5 commits into from
Apr 15, 2020

Conversation

steveklebanoff
Copy link
Contributor

@steveklebanoff steveklebanoff commented Apr 14, 2020

  • Validates taker and maker asset data
  • Validates signedOrderSchema instead of just orderSchema
  • Adds some more logs
  • Adds some more tests

this._schemaValidator.isValid(order, schemas.orderSchema),
);
const validatedOrdersWithStringInts = ordersWithStringInts.filter(order => {
const hasValidSchema = this._schemaValidator.isValid(order, schemas.signedOrderSchema);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this changed from orderSchema to signedOrderSchema

@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 79.613% when pulling 8d17c25 on feature/rfq-t-more-quote-requestor-tests into 58d6256 on rfq-t.

@feuGeneA feuGeneA merged commit 47ef7ff into rfq-t Apr 15, 2020
@feuGeneA feuGeneA deleted the feature/rfq-t-more-quote-requestor-tests branch April 15, 2020 04:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants