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

always define an array for protocol tokens #372

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

bergarces
Copy link
Collaborator

No description provided.

@bergarces bergarces requested a review from jpsains as a code owner November 14, 2024 09:22
},
{
"type": "protocol",
"address": "0x8bE3460A480c80728a8C4D7a5D5303c85ba7B3b9",
"name": "Staked ENA",
"name": "Staked Staked ENA",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is not a typo.

They are staking Staked ENA.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 30%)

See analysis details on SonarQube Cloud


for (const positions of response) {
expect(positions.success).toBe(true)
assert(positions.success)
Copy link
Collaborator Author

@bergarces bergarces Nov 14, 2024

Choose a reason for hiding this comment

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

The expect does not work as a type guard, so I had to write an if or an assert in order to access positions.tokens.

@bergarces bergarces merged commit 9eb6f68 into main Nov 14, 2024
45 of 46 checks passed
@bergarces bergarces deleted the protocol-token-defined-array branch November 14, 2024 11:01
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.

1 participant