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: moved onSuccess and onError for Swap at top level #1123

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

Zizzamia
Copy link
Contributor

What changed? Why?

Notes to reviewers

How has it been tested?

Copy link

vercel bot commented Aug 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
onchainkit-coverage ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2024 6:09am
onchainkit-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2024 6:09am

@@ -13,7 +13,9 @@ export function Swap({
children,
className,
experimental = { useAggregator: true },
onError,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will make the experience between Swap and Transaction similar.

In the next couple PRs, than I need to make the breaking change of removing those from the Button component.

@@ -13,6 +13,7 @@ export type {
Fee,
GetSwapQuoteParams,
GetSwapQuoteResponse,
LifeCycleStatus,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Exporting this, so we can start making the changes in the docs and Playground.

statements: 99.65,
branches: 99.65,
statements: 99.67,
branches: 99.7,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

So close to 100!!!!!!!

@Zizzamia Zizzamia merged commit 4b615ec into main Aug 21, 2024
16 checks passed
@Zizzamia Zizzamia deleted the zizzamia/yo-ok-8-20 branch August 21, 2024 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

1 participant