Skip to content
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

feat: watchAsset uses original params #424

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

xuelongqy
Copy link

Prevent missing parameters, such as images. It is also possible to adopt a unified approach in line with other providers.
This is a disruptive change, and if it is not adopted, I will separately add the 'image' parameter.

@hewigovens
Copy link

can you add separate image parameter?

@xuelongqy
Copy link
Author

can you add separate image parameter?

I added image and params. I think this can solve the compatibility issue.

@@ -343,6 +343,8 @@ class TrustWeb3Provider extends BaseProvider {
contract: options.address,
symbol: options.symbol,
decimals: options.decimals || 0,
image: options.image,
params: payload.params,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't find docs related to this params field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants