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

Fix cronos #102

Merged
merged 2 commits into from
Jun 29, 2023
Merged

Fix cronos #102

merged 2 commits into from
Jun 29, 2023

Conversation

defisaur
Copy link
Contributor

if err != nil {
return fmt.Errorf("failed to get chain from asset type: %w", err)
}

chainFromType := chainFromTypeRaw
if chainFromTypeRaw.ID == coin.CRONOS {
chainFromType = coin.Cryptoorg()
Copy link

Choose a reason for hiding this comment

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

can we update this information on assets repo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

unfortunately we can't without copypasting whole validate func from here

Copy link

Choose a reason for hiding this comment

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

wait, I haven't approved this PR.

I saw this PR https://github.com/trustwallet/assets/pull/25575/files is fixing the wrong directory, so why do we still need this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In check CI action we had 2 type of errors:

  1. Invalid explorer url. It was fixed by https://github.com/trustwallet/assets/pull/25575/files
  2. When trying to get corresponding chain to CRC20 token, it returns Cronos which causes other type of validation error. It was fixed by this line

Copy link

Choose a reason for hiding this comment

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

Got it, thank you.
May I ask you to add comments above your changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, added #103

@defisaur defisaur merged commit 96c3d87 into main Jun 29, 2023
@defisaur defisaur deleted the fix-cronos branch June 29, 2023 07:51
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.

2 participants