You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
"""
The text was updated successfully, but these errors were encountered:
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 in
ore::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 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 differentdrillx::Solution
|
= note:
drillx::Solution
anddrillx::Solution
have similar names, but are actually distinct typesnote:
drillx::Solution
is defined in cratedrillx
--> /root/HardhatChad/drillx/drillx/src/lib.rs:135:1
|
135 | pub struct Solution {
| ^^^^^^^^^^^^^^^^^^^
note:
drillx::Solution
is defined in cratedrillx
--> /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"""
The text was updated successfully, but these errors were encountered: