Skip to content

Commit

Permalink
Merge pull request #152 from peanutprotocol/feat/estimated-from-amount
Browse files Browse the repository at this point in the history
Return estimated from amount
  • Loading branch information
Hugo0 authored Sep 19, 2024
2 parents bf30150 + 8e57a6d commit cc6ee61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/consts/interfaces.consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export interface IPrepareDepositTxsResponse {
export interface IPrepareXchainRequestFulfillmentTransactionProps {
unsignedTxs: IPeanutUnsignedTransaction[]
feeEstimation: string
estimatedFromAmount: string
}

//signAndSubmitTx
Expand Down
2 changes: 1 addition & 1 deletion src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ export async function prepareXchainRequestFulfillmentTransaction({

unsignedTxs.push(unsignedTx)

return { unsignedTxs, feeEstimation: feeEstimation.toString() }
return { unsignedTxs, feeEstimation: feeEstimation.toString(), estimatedFromAmount }
}

export function prepareRequestLinkFulfillmentTransaction({
Expand Down

0 comments on commit cc6ee61

Please sign in to comment.