File tree 3 files changed +4
-3
lines changed
minimal-counter-dapp/src/minimal_dapp
rust/send_http_get/src/send_http_get_backend/src
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
actor {
2
2
3
- var counter : Nat = 0 ;
3
+ stable counter : Nat = 0 ;
4
4
5
5
public func count() : async Nat {
6
6
counter += 1 ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ all: build
3
3
4
4
.PHONY : build
5
5
.SILENT : build
6
+ build :
6
7
dfx deploy send_http_get_backend
7
8
8
9
.PHONY : test
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ async fn get_icp_usd_exchange() -> String {
25
25
type Timestamp = u64 ;
26
26
let start_timestamp: Timestamp = 1682978460 ; //May 1, 2023 22:01:00 GMT
27
27
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" ;
29
29
let url = format ! (
30
30
"https://{}/products/ICP-USD/candles?start={}&end={}&granularity={}" ,
31
31
host,
@@ -168,4 +168,4 @@ fn transform(raw: TransformArgs) -> HttpResponse {
168
168
ic_cdk:: api:: print ( format ! ( "Received an error from coinbase: err = {:?}" , raw) ) ;
169
169
}
170
170
res
171
- }
171
+ }
You can’t perform that action at this time.
0 commit comments