Skip to content

Commit

Permalink
Merge pull request #151 from peanutprotocol/feat/x-chain-request
Browse files Browse the repository at this point in the history
Pass points and amountUsd to API
  • Loading branch information
Hugo0 authored Sep 19, 2024
2 parents fc9b52e + ceae508 commit bf30150
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export interface ISubmitRequestLinkFulfillmentProps {
signedTx?: string
apiUrl?: string
link: string
amountUsd: string
}

export interface ICreateRequestLinkResponse {
Expand Down Expand Up @@ -365,6 +366,7 @@ export async function submitRequestLinkFulfillment({
signedTx,
apiUrl = 'https://api.peanut.to/',
link,
amountUsd,
}: ISubmitRequestLinkFulfillmentProps): Promise<ISubmitRequestLinkFulfillmentResponse> {
try {
const uuid = getUuidFromLink(link)
Expand All @@ -374,6 +376,7 @@ export async function submitRequestLinkFulfillment({
destinationChainFulfillmentHash: hash,
payerAddress,
chainId,
amountUsd,
// signedTx,
}),
headers: {
Expand Down

0 comments on commit bf30150

Please sign in to comment.