forked from MettaChain/PropChain-contract
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror_crowd.txt
More file actions
103 lines (94 loc) · 4.51 KB
/
Copy patherror_crowd.txt
File metadata and controls
103 lines (94 loc) · 4.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
Checking propchain-crowdfunding v1.0.0 (C:\Users\dell\Documents\web3\PropChain-contract\contracts\crowdfunding)
error[E0428]: the name `InvalidParameters` is defined multiple times
--> contracts\crowdfunding\src\lib.rs:31:9
|
30 | InvalidParameters,
| ----------------- previous definition of the type `InvalidParameters` here
31 | InvalidParameters,
| ^^^^^^^^^^^^^^^^^ `InvalidParameters` redefined here
|
= note: `InvalidParameters` must be defined only once in the type namespace of this enum
error[E0433]: cannot find module or crate `propchain_traits` in this scope
--> contracts\crowdfunding\src\lib.rs:436:13
|
436 | propchain_traits::non_reentrant!(self, {
| ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `propchain_traits`
error[E0433]: cannot find module or crate `propchain_traits` in this scope
--> contracts\crowdfunding\src\lib.rs:287:35
|
287 | reentrancy_guard: propchain_traits::ReentrancyGuard::new(),
| ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `propchain_traits`
|
= help: if you wanted to use a crate named `propchain_traits`, use `cargo add propchain_traits` to add it to your `Cargo.toml`
error[E0004]: non-exhaustive patterns: `&CrowdfundingError::InvalidParameters` not covered
--> contracts\crowdfunding\src\lib.rs:16:14
|
16 | #[derive(Debug, PartialEq, Eq, scale::Encode, scale::Decode)]
| ^^^^^ pattern `&CrowdfundingError::InvalidParameters` not covered
|
note: `CrowdfundingError` defined here
--> contracts\crowdfunding\src\lib.rs:18:14
|
18 | pub enum CrowdfundingError {
| ^^^^^^^^^^^^^^^^^
...
31 | InvalidParameters,
| ----------------- not covered
= note: the matched value is of type `&CrowdfundingError`
warning: unreachable pattern
--> contracts\crowdfunding\src\lib.rs:18:14
|
18 | pub enum CrowdfundingError {
| ______________^
| |______________|
19 | || Unauthorized,
20 | || CampaignNotFound,
21 | || CampaignNotActive,
... ||
29 | || ProposalNotActive,
30 | || InvalidParameters,
| ||_________________________- matches all the relevant values
31 | | InvalidParameters,
| |__________________________^ no value can reach this
|
= note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
warning: unreachable pattern
--> contracts\crowdfunding\src\lib.rs:18:14
|
18 | pub enum CrowdfundingError {
| ______________^
| |______________|
19 | || Unauthorized,
20 | || CampaignNotFound,
21 | || CampaignNotActive,
... ||
29 | || ProposalNotActive,
30 | || InvalidParameters,
| ||_________________________- matches all the relevant values
31 | | InvalidParameters,
| |__________________________^ no value can reach this
error[E0433]: cannot find module or crate `propchain_traits` in this scope
--> contracts\crowdfunding\src\lib.rs:222:27
|
222 | reentrancy_guard: propchain_traits::ReentrancyGuard,
| ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `propchain_traits`
|
= help: if you wanted to use a crate named `propchain_traits`, use `cargo add propchain_traits` to add it to your `Cargo.toml`
error[E0433]: cannot find module or crate `propchain_traits` in this scope
--> contracts\crowdfunding\src\lib.rs:36:15
|
36 | impl From<propchain_traits::ReentrancyError> for CrowdfundingError {
| ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `propchain_traits`
|
= help: if you wanted to use a crate named `propchain_traits`, use `cargo add propchain_traits` to add it to your `Cargo.toml`
error[E0433]: cannot find module or crate `propchain_traits` in this scope
--> contracts\crowdfunding\src\lib.rs:37:20
|
37 | fn from(_: propchain_traits::ReentrancyError) -> Self {
| ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `propchain_traits`
|
= help: if you wanted to use a crate named `propchain_traits`, use `cargo add propchain_traits` to add it to your `Cargo.toml`
Some errors have detailed explanations: E0004, E0428, E0433.
For more information about an error, try `rustc --explain E0004`.
warning: `propchain-crowdfunding` (lib) generated 2 warnings
error: could not compile `propchain-crowdfunding` (lib) due to 7 previous errors; 2 warnings emitted