Skip to content

Commit

Permalink
Add user_ii_principal to submit_proof_of_unique_personhood args (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Jul 23, 2024
1 parent 7a2e914 commit b00aca9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
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

0 comments on commit b00aca9

Please sign in to comment.