Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

chore: add error message for when new Trade() is called without any routes #49

Closed

Conversation

felipebrahm
Copy link
Collaborator

Without this additional throw, we were seeing a Cannot read property 'inputAmount' of undefined error. This new error message makes it easier to debug if it happens again.

…t' of undefined" error that could happen if no routes are provided
@felipebrahm
Copy link
Collaborator Author

Closing this PR in favor of #52.

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.

1 participant