Skip to content

Commit

Permalink
Fix issue for the missing depositReceipt to the stake flow context (#…
Browse files Browse the repository at this point in the history
…283)

`depositReceipt` was removed from the staking context after merge
#226. As a result, the user was
unable to do the deposit transaction. Let's add it and fix the staking
flow.
  • Loading branch information
kkosiorowska authored Mar 1, 2024
2 parents cf8d8f0 + 9c7a474 commit ec17423
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dapp/src/contexts/StakeFlowContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export function StakeFlowProvider({ children }: { children: React.ReactNode }) {
initStake: acreInitStake,
signMessage,
btcAddress,
depositReceipt,
stake,
} = useStakeFlow()

Expand All @@ -51,9 +52,10 @@ export function StakeFlowProvider({ children }: { children: React.ReactNode }) {
initStake,
signMessage,
btcAddress,
depositReceipt,
stake,
}),
[initStake, signMessage, btcAddress, stake],
[initStake, signMessage, btcAddress, depositReceipt, stake],
)

return (
Expand Down

0 comments on commit ec17423

Please sign in to comment.