Skip to content

error[E0412]: cannot find type DeterministicHashData in this scope #437

@hyperji

Description

@hyperji

Describe the bug
error[E0412]: cannot find type DeterministicHashData in this scope

To Reproduce
Steps to reproduce the behavior:

  1. Building on Linux
  2. then I run the test, it produces some error with the following code:
    cd rusty-kaspa
    cargo test --release

the error is in below:

`error: Seal changed - was: 0xa7a4 now: 0x544d
--> wallet/core/src/deterministic.rs:59:9
|
59 | seal! { 0xa7a4, {
| ^^^^^^

error[E0412]: cannot find type DeterministicHashData in this scope
--> wallet/core/src/deterministic.rs:78:45
|
78 | fn make_hashes<T, const N: usize>(hashable: DeterministicHashData) -> [Hash; N]
| ^^^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0422]: cannot find struct, variant or union type DeterministicHashData in this scope
--> wallet/core/src/deterministic.rs:93:20
|
93 | let hashable = DeterministicHashData {
| ^^^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0422]: cannot find struct, variant or union type DeterministicHashData in this scope
--> wallet/core/src/deterministic.rs:106:20
|
106 | let hashable = DeterministicHashData {
| ^^^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0422]: cannot find struct, variant or union type DeterministicHashData in this scope
--> wallet/core/src/deterministic.rs:119:20
|
119 | let hashable = DeterministicHashData {
| ^^^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0422]: cannot find struct, variant or union type DeterministicHashData in this scope
--> wallet/core/src/deterministic.rs:132:20
|
132 | let hashable = DeterministicHashData {
| ^^^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type DeterministicHashData in this scope
--> wallet/core/src/deterministic.rs:145:19
|
145 | let hashable: DeterministicHashData<[PrvKeyDataId; 0]> = DeterministicHashData {
| ^^^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0422]: cannot find struct, variant or union type DeterministicHashData in this scope
--> wallet/core/src/deterministic.rs:145:62
|
145 | let hashable: DeterministicHashData<[PrvKeyDataId; 0]> = DeterministicHashData {
| ^^^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type DeterministicHashData in this scope
--> wallet/core/src/deterministic.rs:158:19
|
158 | let hashable: DeterministicHashData<[PrvKeyDataId; 0]> = DeterministicHashData {
| ^^^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0422]: cannot find struct, variant or union type DeterministicHashData in this scope
--> wallet/core/src/deterministic.rs:158:62
|
158 | let hashable: DeterministicHashData<[PrvKeyDataId; 0]> = DeterministicHashData {
| ^^^^^^^^^^^^^^^^^^^^^ not found in this scope

Some errors have detailed explanations: E0412, E0422.
For more information about an error, try rustc --explain E0412.
error: could not compile kaspa-wallet-core (lib) due to 10 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile kaspa-wallet-core (lib test) due to 10 previous errors`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions