Skip to content

Commit

Permalink
deploy on ic
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyuanxun committed Dec 10, 2023
1 parent 08e5bd2 commit 4b62c04
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
23 changes: 23 additions & 0 deletions canister_ids.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"user" : {
"ic" : "j6sa4-jyaaa-aaaan-qgjxq-cai"
},
"rootPost" : {
"ic" : "lyksr-aiaaa-aaaan-qgj2q-cai"
},
"rootFeed" : {
"ic" : "lrjzn-waaaa-aaaan-qgj3a-cai"
},
"rootFetch" : {
"ic" : "l7luf-nqaaa-aaaan-qgj2a-cai"
},
"postFetch" : {
"ic" : "ldpou-2qaaa-aaaan-qgjya-cai"
},
"commentFetch" : {
"ic" : "lnnd4-baaaa-aaaan-qgjza-cai"
},
"likeFetch" : {
"ic" : "leoia-xiaaa-aaaan-qgjyq-cai"
}
}
5 changes: 3 additions & 2 deletions src/feed/rootFeed.mo
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ actor class RootFeed(
// 给用户创建一个用户自己的 Canister
public shared({caller}) func createFeedCanister(): async ?Principal {
assert(_getUserFeedCanister(caller) == null);
Cycles.add(4 * T_CYCLES);
Cycles.add(2 * T_CYCLES);
let feedCanister = await Feed.Feed(
caller, rootPostCanister, userCanister,
postFetchCanister,
Expand All @@ -41,7 +41,8 @@ actor class RootFeed(
canister_id = feedCanisterId;
settings = {
freezing_threshold = null;
controllers = ?[Principal.fromActor(this), caller, feedCanisterId];
// controllers = ?[Principal.fromActor(this), caller, feedCanisterId];
controllers = ?[Principal.fromActor(this), feedCanisterId];
memory_allocation = null;
compute_allocation = null;
}
Expand Down

0 comments on commit 4b62c04

Please sign in to comment.