Skip to content

Commit

Permalink
Merge pull request #245 from gnosisguild/fix-target-query
Browse files Browse the repository at this point in the history
fix: name clash with ethers built-in
  • Loading branch information
jfschwarz authored Jan 17, 2025
2 parents b4ff63e + ca69a77 commit 9e50b51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const ContractFunctionQueryBlock = ({ address, func }: ContractFunctionBl
const execQuery = useCallback(
(params?: any[]) => {
setLastQueryDate(undefined)
fetch(provider, safe.chainId, address, [func], func.name, params)
fetch(provider, safe.chainId, address, [func], func.format(), params)
},
[address, fetch, func, safe.chainId, provider],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ export const ContractReadFunctionsList = ({ abi, address, preview }: ModuleListF
<>
{readFunctions.map((func) => {
if (preview) {
return <ContractFunctionPreviewBlock key={func.name} func={func} />
return <ContractFunctionPreviewBlock key={func.selector} func={func} />
}

return <ContractFunctionQueryBlock key={func.name} address={address} func={func} />
return <ContractFunctionQueryBlock key={func.selector} address={address} func={func} />
})}
</>
)
Expand Down

0 comments on commit 9e50b51

Please sign in to comment.