Skip to content

Commit

Permalink
Revert "fix: Call /swaps/link with GET instead of POST"
Browse files Browse the repository at this point in the history
This reverts commit e089ad6.
  • Loading branch information
sbp-rib committed Jan 26, 2021
1 parent a68adb5 commit 8d34e49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modules/swap/createSwap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ export const createSwap = async <M extends SkybridgeMode>(
}

const linkResult = await fetch<{ affiliateCode: string }>(
`${params.context.affiliateApi}/api/${params.context.mode}/swaps/link?affiliateCode=${params.affiliateCode}&swapHash=${result.hash}`,
`${params.context.affiliateApi}/api/${params.context.mode}/swaps/link`,
{
method: 'POST',
body: JSON.stringify({ affiliateCode: params.affiliateCode, swapHash: result.hash }),
},
);

if (!linkResult.ok) {
Expand Down

0 comments on commit 8d34e49

Please sign in to comment.