Skip to content

Commit d9e05e2

Browse files
authored
Adapt Company Identity Proof, Adapt Signatories, Add Change Signatory (#747)
Email
1 parent 6759b9c commit d9e05e2

File tree

22 files changed

+1047
-194
lines changed

22 files changed

+1047
-194
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
* Add endpoints to `confirm`, `verify` an email address and to `get_email_confirmations`
2424
* Adapt `IdentityProof` Block to include the email confirmation signed by the mint
2525
* Split up `update_identity` and `update_email` for identity and create identity proof block on email update
26+
* Change flow for company creation to first call `create_company_keys` to get a key pair and node id, then confirm email of creator, then create company
27+
* Add `email` to signatory and use a data structure for signatories (breaking API and DB change)
2628

2729
# 0.4.12
2830

crates/bcr-ebill-api/src/service/bill_service/issue.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ impl BillService {
188188
}
189189
}
190190

191-
// TODO: replace with directly creating BillIssueBlockData
192191
let bill = BitcreditBill {
193192
id: bill_id.clone(),
194193
country_of_issuing: data.country_of_issuing,

crates/bcr-ebill-api/src/service/bill_service/payment.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ impl BillService {
220220
.0
221221
.signatories
222222
.iter()
223-
.any(|s| s == &identity.identity.node_id)
223+
.any(|s| s.node_id == identity.identity.node_id)
224224
{
225225
let reason = match payment_info.reason {
226226
BillRecourseReasonBlockData::Pay => {
@@ -354,7 +354,7 @@ impl BillService {
354354
.0
355355
.signatories
356356
.iter()
357-
.any(|s| s == &identity.identity.node_id)
357+
.any(|s| s.node_id == identity.identity.node_id)
358358
{
359359
let _ = self
360360
.execute_bill_action(

0 commit comments

Comments
 (0)