Closed abtestingalpha closed 1 month ago
The changes involve modifications to the destinationTokensController
in destinationTokensController.ts
, enhancing its logic and error handling. A new variable payload
is introduced to manage response data, with conditions to set its value based on the presence of fromTokenInfo
. The response handling is updated to ensure consistent return statements. Additionally, the test suite in destinationTokensRoute.test.ts
is expanded with a new test case to verify behavior when no destination tokens are available, while existing tests remain intact.
File Path | Change Summary |
---|---|
packages/rest-api/src/controllers/destinationTokensController.ts | Modified logic to introduce payload , updated response handling to ensure consistent return statements. |
packages/rest-api/src/tests/destinationTokensRoute.test.ts | Added new import ONEETH and a test case for scenarios with no destination tokens, preserving existing tests. |
/destinationTokens
route, related to handling token information in destinationTokensController.ts
.validateRouteExists
function, enhancing route validation relevant to the modified /destinationTokens
route./destinationTx
endpoint with similar improvements in controller logic and response handling as seen in the main PR.size/s
, Sol
, Typescript
In the code where tokens play,
A rabbit hops to light the way.
With payloads bright and tests anew,
We check for chains, both old and true.
So let us code, and let us cheer,
For every change brings us near! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Latest commit: |
5084e97
|
Status: | ✅ Deploy successful! |
Preview URL: | https://1b86e0bb.sanguine-fe.pages.dev |
Branch Preview URL: | https://rest-api-handle-tokens-not-i.sanguine-fe.pages.dev |
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 26.98386%. Comparing base (
6415acd
) to head (5084e97
). Report is 12 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description Not all
bridgeable
tokens exist in bridgemap, so this handles the case by returning an empty list.Summary by CodeRabbit
New Features
Bug Fixes
Tests