From 90796f82213d82ab76edb243603452e085f8ecef Mon Sep 17 00:00:00 2001 From: Harsh R <53080940+fullstackninja864@users.noreply.github.com> Date: Mon, 24 Jun 2024 12:49:05 +0530 Subject: [PATCH] fix(web): fixed parse eth value for write contract method (#386) --- .../pages/address/_components/contract/ContractMethodForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/pages/address/_components/contract/ContractMethodForm.tsx b/apps/web/src/pages/address/_components/contract/ContractMethodForm.tsx index 47278ec4..9b8ec981 100644 --- a/apps/web/src/pages/address/_components/contract/ContractMethodForm.tsx +++ b/apps/web/src/pages/address/_components/contract/ContractMethodForm.tsx @@ -100,7 +100,7 @@ export default function ContractMethodForm({ abi: [method], functionName: method.name, args: method.inputs?.length > 0 ? convertedValue : [], - ...(dfiValue && { value: parseEther(`${Number(dfiValue)}`) }), // to specify the amount of Ether to send with the contract function call, if any + ...(dfiValue && { value: parseEther(dfiValue) }), // to specify the amount of Ether to send with the contract function call, if any }; if (isWriteOrWriteProxy) { // Write/WriteProxy