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

splitSignature - Undeclared identifier #16

Open
jack75015 opened this issue Jan 16, 2023 · 1 comment
Open

splitSignature - Undeclared identifier #16

jack75015 opened this issue Jan 16, 2023 · 1 comment

Comments

@jack75015
Copy link

Hello
I cloned the project and followed the step.
For the compile step yarn compile, I got this error:

Downloading compiler 0.8.9
Compiling 21 files with 0.8.9
DeclarationError: Undeclared identifier.
  --> contracts/mocks/ERC1238ExpirableMock.sol:52:51:
   |
52 |                 (bytes32 r, bytes32 s, uint8 v) = splitSignature(data[i]);
   |                                                   ^^^^^^^^^^^^^^


Error HH600: Compilation failed

For more info go to https://hardhat.org/HH600 or run Hardhat with --show-stack-traces

Am i the only one?

@0xThresh
Copy link

I ran into the same error. I don't think I'm going to need that mock anyways, so I just changed its extension from .sol to .badsol for now, and compiling worked fine.

Here was the stack trace in case it's helpful to maintainers:

    at SimpleTaskDefinition.action (/Users/0xthresh/Web3/ERC1238-token/node_modules/hardhat/src/builtin-tasks/compile.ts:471:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Environment._runTaskDefinition (/Users/0xthresh/Web3/ERC1238-token/node_modules/hardhat/src/internal/core/runtime-environment.ts:311:14)
    at async OverriddenTaskDefinition._action (/Users/0xthresh/Web3/ERC1238-token/node_modules/@typechain/hardhat/src/index.ts:30:30)
    at async Environment._runTaskDefinition (/Users/0xthresh/Web3/ERC1238-token/node_modules/hardhat/src/internal/core/runtime-environment.ts:311:14)
    at async Environment.run (/Users/0xthresh/Web3/ERC1238-token/node_modules/hardhat/src/internal/core/runtime-environment.ts:159:14)
    at async SimpleTaskDefinition.action (/Users/0xthresh/Web3/ERC1238-token/node_modules/hardhat/src/builtin-tasks/compile.ts:1346:63)
    at async Environment._runTaskDefinition (/Users/0xthresh/Web3/ERC1238-token/node_modules/hardhat/src/internal/core/runtime-environment.ts:311:14)
    at async Environment.run (/Users/0xthresh/Web3/ERC1238-token/node_modules/hardhat/src/internal/core/runtime-environment.ts:159:14)
    at async SimpleTaskDefinition.action (/Users/0xthresh/Web3/ERC1238-token/node_modules/hardhat/src/builtin-tasks/compile.ts:1426:7)```

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