forked from SoroSusu-Protocol/sorosusu-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemp_errors.txt
More file actions
136 lines (126 loc) · 11.3 KB
/
Copy pathtemp_errors.txt
File metadata and controls
136 lines (126 loc) · 11.3 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
cargo : Checking sorosusu-contracts v0.1.0 (C:\Users\dell\sorosusu-contracts)
At line:1 char:1
+ cargo check 2> temp_errors.txt
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( Checking so...susu-contracts):String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
error[E0432]: unresolved imports `soroban_sdk::testutils`, `soroban_sdk::arbitrary`
--> src\lib.rs:2:129
|
2 | ...ken, testutils::{Address as TestAddress, Arbitrary as TestArbitrary}, arbitrary::{Arbitrary, Unstructured}};
| ^^^^^^^^^ could not find `testutils` in `soroban_sdk` ^^^^^^^^^ could not find `arbitrary` in
`soroban_sdk`
|
note: found an item that was configured out
--> C:\Users\dell\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\soroban-sdk-21.7.7\src\lib.rs:818:9
|
818 | pub mod testutils;
| ^^^^^^^^^
|
::: C:\Users\dell\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\soroban-sdk-21.7.7\src\testutils.rs:1:11
|
1 | #![cfg(any(test, feature = "testutils"))]
| ----------------------------- the item is gated here
warning: unused import: `Symbol`
--> src\lib.rs:2:92
|
2 | use soroban_sdk::{contract, contracttype, contractimpl, contractclient, Address, Env, Vec, Symbol, String,
symbol_short, token, testu...
| ^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
error[E0061]: this enum variant takes 2 arguments but 1 argument was supplied
--> src\lib.rs:541:24
|
541 | let proposal_key = DataKey::Proposal(proposal.id);
| ^^^^^^^^^^^^^^^^^------------- argument #2 of type `u64` is missing
|
note: tuple variant defined here
--> src\lib.rs:22:5
|
22 | Proposal(u64, u64), // CircleID, ProposalID
| ^^^^^^^^
help: provide the argument
|
541 | let proposal_key = DataKey::Proposal(proposal.id, /* u64 */);
| +++++++++++
error[E0308]: mismatched types
--> src\lib.rs:567:68
|
567 | client.transfer(&creator, &env.current_contract_address(), &bond_amount);
| -------- arguments to this method are incorrect ^^^^^^^^^^^^ expected `&i128`, found `&u64`
|
= note: expected reference `&i128`
found reference `&u64`
note: method defined here
--> C:\Users\dell\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\soroban-sdk-21.7.7\src\token.rs:144:8
|
144 | fn transfer(env: Env, from: Address, to: Address, amount: i128);
| ^^^^^^^^
error[E0308]: mismatched types
--> src\lib.rs:691:13
|
688 | client.transfer(
| -------- arguments to this method are incorrect
...
691 | &total_deposit
| ^^^^^^^^^^^^^^ expected `&i128`, found `&u64`
|
= note: expected reference `&i128`
found reference `&u64`
note: method defined here
--> C:\Users\dell\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\soroban-sdk-21.7.7\src\token.rs:144:8
|
144 | fn transfer(env: Env, from: Address, to: Address, amount: i128);
| ^^^^^^^^
error[E0308]: mismatched types
--> src\lib.rs:819:79
|
819 | client.transfer(&env.current_contract_address(), &circle.creator, &bond_amount);
| -------- arguments to this method are incorrect ^^^^^^^^^^^^ expected `&i128`,
found `&u64`
|
= note: expected reference `&i128`
found reference `&u64`
note: method defined here
--> C:\Users\dell\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\soroban-sdk-21.7.7\src\token.rs:144:8
|
144 | fn transfer(env: Env, from: Address, to: Address, amount: i128);
| ^^^^^^^^
error[E0308]: mismatched types
--> src\lib.rs:827:65
|
827 | client.transfer(&user, &env.current_contract_address(), &amount);
| -------- arguments to this method are incorrect ^^^^^^^ expected `&i128`, found `&u64`
|
= note: expected reference `&i128`
found reference `&u64`
note: method defined here
--> C:\Users\dell\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\soroban-sdk-21.7.7\src\token.rs:144:8
|
144 | fn transfer(env: Env, from: Address, to: Address, amount: i128);
| ^^^^^^^^
error[E0308]: mismatched types
--> src\lib.rs:846:65
|
846 | client.transfer(&env.current_contract_address(), &user, &amount);
| -------- arguments to this method are incorrect ^^^^^^^ expected `&i128`, found `&u64`
|
= note: expected reference `&i128`
found reference `&u64`
note: method defined here
--> C:\Users\dell\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\soroban-sdk-21.7.7\src\token.rs:144:8
|
144 | fn transfer(env: Env, from: Address, to: Address, amount: i128);
| ^^^^^^^^
warning: unused variable: `client`
--> src\lib.rs:797:17
|
797 | let client = token::Client::new(&env, &circle.token);
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
Some errors have detailed explanations: E0061, E0308, E0432.
For more information about an error, try `rustc --explain E0061`.
warning: `sorosusu-contracts` (lib) generated 2 warnings
error: could not compile `sorosusu-contracts` (lib) due to 7 previous errors; 2 warnings emitted