Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user_ii_principal to submit_proof_of_unique_personhood args #6092

Merged
merged 2 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/canisters/user_index/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Handle transfer fee changing in either direction ([#6064](https://github.com/open-chat-labs/open-chat/pull/6064))
- Accept proofs of uniqueness from LocalUserIndexes ([#6068](https://github.com/open-chat-labs/open-chat/pull/6068))
- Ensure UserIndex is only controller before installing LocalUserIndex ([#6070](https://github.com/open-chat-labs/open-chat/pull/6070))
- Add `user_ii_principal` to `submit_proof_of_unique_personhood` args ([#6092](https://github.com/open-chat-labs/open-chat/pull/6092))

### Removed

Expand Down
1 change: 1 addition & 0 deletions backend/canisters/user_index/api/can.did
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ type PayForDiamondMembershipResponse = variant {
};

type SubmitProofOfUniquePersonhoodArgs = record {
user_ii_principal : principal;
credential_jwt : text;
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
use candid::CandidType;
use candid::{CandidType, Principal};
use serde::{Deserialize, Serialize};

#[derive(CandidType, Serialize, Deserialize, Clone, Debug)]
pub struct Args {
pub user_ii_principal: Principal,
pub credential_jwt: String,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn submit_proof_of_unique_personhood_impl(args: Args, state: &mut RuntimeState)

let now = state.env.now();
match verify_proof_of_unique_personhood(
caller,
args.user_ii_principal,
state.data.internet_identity_canister_id,
&args.credential_jwt,
&state.data.ic_root_key,
Expand Down
Loading