Skip to content

Commit

Permalink
Merge pull request #454 from ourzora/fix-abi-issue
Browse files Browse the repository at this point in the history
Fix abi issue on custom tx form
  • Loading branch information
neokry committed Mar 27, 2024
2 parents 5863498 + 0304273 commit e96fc31
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ export const Summary: React.FC<SummaryProps> = ({ setIsOpen }) => {
return rawData[1]
}

if (!customTransaction?.contract?.abi) return
const abi = customTransaction?.contract?.abi || customTransaction?.customABI

const contract = new ethers.Contract(
customTransaction?.address,
customTransaction?.contract?.abi
)
if (!abi) return

const contract = new ethers.Contract(customTransaction?.address, abi)

const args: [string, string][] = customTransaction.arguments

Expand Down

0 comments on commit e96fc31

Please sign in to comment.