regolith-labs / ore

ORE is a cryptocurrency everyone can mine.
https://ore.supply
691 stars 237 forks source link

cannot find function deregister #53

Open kaifeitudou opened 5 months ago

kaifeitudou commented 5 months ago

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 commented 5 months ago

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