Skip to content

Commit

Permalink
fix(web): fixed parse eth value for write contract method (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
fullstackninja864 authored Jun 24, 2024
1 parent 5ab7ef9 commit 90796f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90796f8

Please sign in to comment.