Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity committed Sep 16, 2024
1 parent 0ddca2c commit 8a73eba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion motoko/minimal-counter-dapp/src/minimal_dapp/main.mo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
actor {

var counter : Nat = 0;
stable counter : Nat = 0;

public func count() : async Nat {
counter += 1;
Expand Down
1 change: 1 addition & 0 deletions motoko/send_http_get/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ all: build

.PHONY: build
.SILENT: build
build:
dfx deploy send_http_get_backend

.PHONY: test
Expand Down
4 changes: 2 additions & 2 deletions rust/send_http_get/src/send_http_get_backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async fn get_icp_usd_exchange() -> String {
type Timestamp = u64;
let start_timestamp: Timestamp = 1682978460; //May 1, 2023 22:01:00 GMT
let seconds_of_time: u64 = 60; //we start with 60 seconds
let host = "api.pro.coinbase.com";
let host = "api.exchange.coinbase.com";
let url = format!(
"https://{}/products/ICP-USD/candles?start={}&end={}&granularity={}",
host,
Expand Down Expand Up @@ -168,4 +168,4 @@ fn transform(raw: TransformArgs) -> HttpResponse {
ic_cdk::api::print(format!("Received an error from coinbase: err = {:?}", raw));
}
res
}
}

0 comments on commit 8a73eba

Please sign in to comment.