Chapter 10: nextjs-smartcontract-lottery [Error on raffle.interface.format(ethers.utils.FormatTypes.json)] for TypeScript ] #816
Unanswered
sanjayojha
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
-
In the VSCode suggestion the Interface.format typescript type is "string | string[]", and the fs.writeFileSync function requires "string | NodeJSArrayBufferView" resulting in no match. With this change it works for me:
And yes @PatrickAlphaC the typescript github repo lacks the abi.json frontend updating mechanism |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While updating ABI from hardhat Smart contract Lottery deploy script
02-update-front-end.ts
. I am getting following error.The original repository of
typescript
version has missing code for updating ABI on front-end. I followed the main branch JavaScript code in my Typescript file, but gettting above error.Full code of
02-update-front-end.ts
Beta Was this translation helpful? Give feedback.
All reactions