-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
History links not working for some assets #773
Comments
This seems to be a multinetwork issue. If you are not on the same network as the asset it will have undefined in the URL. If you are on the same network it works. Interestingly, it seems to work fine with no wallet connected. |
The issue is that the graphQL query isn't working when you're on the wrong network.
Still not sure why it works when a wallet isn't connected |
I noticed that the DDO already contains the id of the creation transaction, so the easiest way to solve this is by using:
|
Totally missed that |
Actually, @alexcos20 pointed out that I'm struggling to see why the GraphQL query works when you don't have a wallet connected but doesn't work when you have a wallet connected to the wrong network. |
I think we have to ditch What we have done for getting the asset pool data is to pass another So we could do the same for edit history, and looks like it would make sense replacing the auto-connection of |
Same is true for |
The asset details error is old and unrelated. But shouldn't the subgraph url be based on ddo network ,not wallet network? |
@mihaisc Yeah, based on the DDO network would get it working again... Currently, it's based on the network ID, with a default of mainnet: market/src/providers/UrqlProvider.tsx Line 29 in d0b1534
|
Yeah that's correct. It's actually only mainnet assets that are working without a wallet connect as the default network ID is 1 |
yes totally, that But as both remaining |
Some metadata history links are not working , tx is undefined
examples: https://market.oceanprotocol.com/asset/did:op:b98B96B2DDe7e1237928400cFCD54327eF58fff4
https://market.oceanprotocol.com/asset/did:op:7FBEDfF92F39ae900393B17370E192D508458FDB
The text was updated successfully, but these errors were encountered: