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
---------------------- 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
"""
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 moduleore::instruction
--> src/close.rs:39:36 | 39 | let ix = ore::instruction::deregister(signer.pubkey()); | ^^^^^^^^^^ not found inore::instruction
error[E0425]: cannot find function
register
in moduleore::instruction
--> src/register.rs:16:36 | 16 | let ix = ore::instruction::register(signer.pubkey()); | ^^^^^^^^ not found inore::instruction
drillx::Solution
, found a differentdrillx::Solution
drillx::Solution
is defined in cratedrillx
--> /root/HardhatChad/drillx/drillx/src/lib.rs:135:1drillx::Solution
is defined in cratedrillx
--> /root/.cargo/git/checkouts/drillx-b189dc47c624f38e/ce03309/drillx/src/lib.rs:135:1note: 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 compileore-cli
(bin "ore") due to 3 previous errors """