As of now, this react component will always use https://soroban-testnet.stellar.org for the example URLs. We need to modify this so we can display the relevant example URL for Anchor Platform methods.
For context, here's the (ugly) way we do it currently, by checking if there is an _ (underscore) in the method name. That's very fragile, though.
Likely a better method is to see if the passed-in method has any tags associated with it.
As of now, this react component will always use
https://soroban-testnet.stellar.orgfor the example URLs. We need to modify this so we can display the relevant example URL for Anchor Platform methods.For context, here's the (ugly) way we do it currently, by checking if there is an
_(underscore) in the method name. That's very fragile, though.Likely a better method is to see if the passed-in
methodhas anytagsassociated with it.