Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError _contractABIs_daoDealClientABI_json__WEBPACK_IMPORTED_MODULE_2__.encodeFunctionData is not a function #18

Open
elvisMat opened this issue Sep 26, 2023 · 1 comment

Comments

@elvisMat
Copy link

The propose function does not work. An error is shown "Something went wrong. TypeError contractABIs_daoDealClientABI_json__WEBPACK_IMPORTED_MODULE_2_.encodeFunctionData is not a function"

@mmsaki
Copy link

mmsaki commented Mar 9, 2024

How to fix issue

Reference file: frontend/src/components/input.js

  1. Import interdace Class at top of file on L6

    import { ethers, Interface } from 'ethers';
  2. Then add this on line L100 - L101:

const encodedFunctionCall = Interface.from(daoDealClientABI).encodeFunctionData('makeDealProposal', [DealRequestStruct]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants