Skip to content

Commit 8a73eba

Browse files
fix
1 parent 0ddca2c commit 8a73eba

File tree

3 files changed

+4
-3
lines changed
  • motoko
  • rust/send_http_get/src/send_http_get_backend/src

3 files changed

+4
-3
lines changed

motoko/minimal-counter-dapp/src/minimal_dapp/main.mo

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
actor {
22

3-
var counter : Nat = 0;
3+
stable counter : Nat = 0;
44

55
public func count() : async Nat {
66
counter += 1;

motoko/send_http_get/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ all: build
33

44
.PHONY: build
55
.SILENT: build
6+
build:
67
dfx deploy send_http_get_backend
78

89
.PHONY: test

rust/send_http_get/src/send_http_get_backend/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async fn get_icp_usd_exchange() -> String {
2525
type Timestamp = u64;
2626
let start_timestamp: Timestamp = 1682978460; //May 1, 2023 22:01:00 GMT
2727
let seconds_of_time: u64 = 60; //we start with 60 seconds
28-
let host = "api.pro.coinbase.com";
28+
let host = "api.exchange.coinbase.com";
2929
let url = format!(
3030
"https://{}/products/ICP-USD/candles?start={}&end={}&granularity={}",
3131
host,
@@ -168,4 +168,4 @@ fn transform(raw: TransformArgs) -> HttpResponse {
168168
ic_cdk::api::print(format!("Received an error from coinbase: err = {:?}", raw));
169169
}
170170
res
171-
}
171+
}

0 commit comments

Comments
 (0)