Skip to content

Commit 1921bd8

Browse files
committed
Fix build warnings
1 parent b21d6f7 commit 1921bd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

motoko/ic-pos/src/icpos/main.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ shared (actorContext) actor class Main(_startBlock : Nat) {
114114
logData.insert(0, text);
115115
// Cap the log at 100 items
116116
if (logData.size() == 100) {
117-
let x = logData.removeLast();
117+
let _ = logData.removeLast();
118118
};
119119
return;
120120
};
@@ -217,7 +217,7 @@ shared (actorContext) actor class Main(_startBlock : Nat) {
217217
// Cycle cost of sending a notification
218218
// 49.14M + 5200 * request_size + 10400 * max_response_bytes
219219
// 49.14M + (5200 * 1000) + (10400 * 1000) = 64.74M
220-
Cycles.add(70_000_000);
220+
Cycles.add<system>(70_000_000);
221221

222222
// Send the request
223223
let httpResponse : HttpTypes.HttpResponsePayload = await ic.http_request(httpRequest);

0 commit comments

Comments
 (0)