Skip to content

Commit

Permalink
fix: wrong variables in scaffold write contract
Browse files Browse the repository at this point in the history
  • Loading branch information
metalboyrick committed Oct 12, 2024
1 parent 2c9d168 commit 07c7f63
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const useScaffoldWriteContract = <
}) => {
// if no args supplied, use the one supplied from hook
let newArgs = params?.args;
if (!newArgs) {
if (Object.keys(newArgs || {}).length <= 0) {
newArgs = args;
}

Expand All @@ -100,7 +100,7 @@ export const useScaffoldWriteContract = <
? parseFunctionParams({
abiFunction,
abi: deployedContractData.abi,
inputs: args as any[],
inputs: newArgs as any[],
isRead: false,
isReadArgsParsing: false,
}).flat(Infinity)
Expand Down

0 comments on commit 07c7f63

Please sign in to comment.