From a9758dd2f7a707e9cb3379a57b7d310920a5eb0d Mon Sep 17 00:00:00 2001 From: Yun Date: Mon, 9 Sep 2024 20:21:30 -1000 Subject: [PATCH] Fix wallet funding flow (#680) --- packages/keychain/src/components/ConfirmTransaction.tsx | 3 +++ packages/keychain/src/components/Funding.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/keychain/src/components/ConfirmTransaction.tsx b/packages/keychain/src/components/ConfirmTransaction.tsx index b468c3d9b..f902caaac 100644 --- a/packages/keychain/src/components/ConfirmTransaction.tsx +++ b/packages/keychain/src/components/ConfirmTransaction.tsx @@ -116,6 +116,9 @@ export function ConfirmTransaction() { { setCTAState("execute"); + setCtrlError(undefined); + setLoading(false); + estimateFees(); }} defaultAmount={feeEstimate} /> diff --git a/packages/keychain/src/components/Funding.tsx b/packages/keychain/src/components/Funding.tsx index 5a47353cd..906086c6d 100644 --- a/packages/keychain/src/components/Funding.tsx +++ b/packages/keychain/src/components/Funding.tsx @@ -109,7 +109,7 @@ function FundingInner({ onComplete, title, defaultAmount }: FundingInnerProps) { contractAddress: ETH_CONTRACT_ADDRESS, entrypoint: "transfer", calldata: CallData.compile({ - sender: controller.account.address, + recipient: controller.account.address, amount: cairo.uint256(parseEther(amount)), }), },