interlay / interbtc-api

interBTC TypeScript SDK
https://app.interlay.io/
Apache License 2.0
25 stars 21 forks source link

Include ID of foreign asset not found when rejecting #521

Open bvotteler opened 1 year ago

bvotteler commented 1 year ago

The rejection message in DefaultAssetRegistryAPI.getForeignAsset(...) should include the id.

https://github.com/interlay/interbtc-api/blob/d987b57b73aa1a008037dab6d653f302ba560584/src/parachain/asset-registry.ts#L99

artsytechie commented 1 year ago

Hello, so we would want the id to be in the error message. For example:

image