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

cannot find function deregister #53

Open
kaifeitudou opened this issue Jun 28, 2024 · 1 comment
Open

cannot find function deregister #53

kaifeitudou opened this issue Jun 28, 2024 · 1 comment

Comments

@kaifeitudou
Copy link

I had update the code to the latest. And run the command 'cargo build --release' in the ore-cli director. There some error show:

"""
[root@ecs-VdjG9 ore-cli]# cargo build --release
Compiling ore-cli v0.5.0 (/root/HardhatChad/ore-cli)
error[E0425]: cannot find function deregister in module ore::instruction
--> src/close.rs:39:36
|
39 | let ix = ore::instruction::deregister(signer.pubkey());
| ^^^^^^^^^^ not found in ore::instruction

error[E0425]: cannot find function register in module ore::instruction
--> src/register.rs:16:36
|
16 | let ix = ore::instruction::register(signer.pubkey());
| ^^^^^^^^ not found in ore::instruction

error[E0308]: mismatched types
--> src/mine.rs:53:17
|
50 | ixs.push(ore::instruction::mine(
| ---------------------- arguments to this function are incorrect
...
53 | solution,
| ^^^^^^^^ expected drillx::Solution, found a different drillx::Solution
|
= note: drillx::Solution and drillx::Solution have similar names, but are actually distinct types
note: drillx::Solution is defined in crate drillx
--> /root/HardhatChad/drillx/drillx/src/lib.rs:135:1
|
135 | pub struct Solution {
| ^^^^^^^^^^^^^^^^^^^
note: drillx::Solution is defined in crate drillx
--> /root/.cargo/git/checkouts/drillx-b189dc47c624f38e/ce03309/drillx/src/lib.rs:135:1
|
135 | pub struct Solution {
| ^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate drillx are being used?
note: function defined here
--> /root/HardhatChad/ore/src/instruction.rs:250:8
|
250 | pub fn mine(signer: Pubkey, bus: Pubkey, solution: Solution) -> Instruction {
| ^^^^

Some errors have detailed explanations: E0308, E0425.
For more information about an error, try rustc --explain E0308.
error: could not compile ore-cli (bin "ore") due to 3 previous errors
"""

@HardhatChad
Copy link
Contributor

Refactoring hardhat/v2 branch now. Will update the cli this weekend

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