forked from SubStream-Protocol/SubStream-Protocol-Contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_output.txt
More file actions
107 lines (102 loc) · 2.17 KB
/
Copy pathcheck_output.txt
File metadata and controls
107 lines (102 loc) · 2.17 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
104
105
106
107
cargo : Checking
substream_contracts v0.0.0
(C:\Users\USER\SubStream-Pr
otocol-Contracts\contracts\
substream_contracts)
At line:1 char:1
+ cargo check
--manifest-path contracts/s
ubstream_contracts/Cargo.to
ml ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~
+ CategoryInfo
: NotSpecified: (
Checking su...ream_co
ntracts):String) [], R
emoteException
+ FullyQualifiedErrorI
d : NativeCommandError
error: contract function
name is too long: 33, max
is 32
--> contracts\substream_
contracts\src\lib.rs:366:12
|
366 | pub fn calculate_
total_earned_by_creator(env
: Env, creator: Address)
-> i128 {
| ^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated
method `soroban_sdk::events
::Events::publish`: use
the #[contractevent] macro
on a contract event type
--> contracts\substream_
contracts\src\lib.rs:322:22
|
322 |
env.events().publish(
|
^^^^^^^
|
= note:
`#[warn(deprecated)]` on
by default
warning: use of deprecated
method `soroban_sdk::events
::Events::publish`: use
the #[contractevent] macro
on a contract event type
--> contracts\substream_
contracts\src\lib.rs:549:22
|
549 |
env.events().publish(
|
^^^^^^^
error[E0382]: borrow of
moved value: `creators`
--> contracts\substream_
contracts\src\lib.rs:646:20
|
617 | creators:
Vec<Address>,
| -------- move
occurs because `creators`
has type `soroban_sdk::Vec<
soroban_sdk::Address>`,
which does not implement
the `Copy` trait
...
640 | creators,
| --------
value moved here
...
646 | for creator in
creators.iter() {
|
^^^^^^^^ value borrowed
here after move
|
help: consider cloning the
value if the performance
cost is acceptable
|
640 | creators:
creators.clone(),
|
++++++++++++++++++
For more information about
this error, try `rustc
--explain E0382`.
warning:
`substream_contracts`
(lib) generated 2 warnings
error: could not compile
`substream_contracts`
(lib) due to 2 previous
errors; 2 warnings emitted