Skip to content

Commit

Permalink
fix: add source network to send flow parameters where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
nicole-obrien committed May 1, 2024
1 parent 2e2448f commit 12179ca
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
function onSendClick(): void {
setSendFlowParameters({
type: SendFlowType.NftTransfer,
sourceNetworkId: nft.networkId,
nft,
recipient: undefined,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ function parseSendTransactionOperation(searchParams: URLSearchParams): SendFlowP
destinationNetworkId: networkId,
...(baseCoinTransfer && { baseCoinTransfer }),
...(tokenTransfer && { tokenTransfer }),
sourceNetworkId: networkId,
...(address && { recipient: { type: SubjectType.Address, address } }),
...(metadata && { metadata }),
...(tag && { tag }),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function parseSendFormOperation(searchParams: URLSearchParams): SendFlowParamete
type,
...(baseCoinTransfer && { baseCoinTransfer }),
...(tokenTransfer && { tokenTransfer }),
sourceNetworkId: networkId,
...(address && { recipient }),
...(metadata && { metadata }),
...(tag && { tag }),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ async function claimShimmerRewardsForShimmerClaimingAccount(
},
rawAmount: BigInt(rawAmount),
},
sourceNetworkId: SupportedNetworkId.Shimmer,
destinationNetworkId: SupportedNetworkId.Shimmer,
}
setSendFlowParameters(sendFlowParameters)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,6 @@ function setSendParametersForClaiming(activity: StardustActivity): void {
token,
}
}
params.sourceNetworkId = token.networkId
setSendFlowParameters(params)
}

0 comments on commit 12179ca

Please sign in to comment.