Skip to content
Snippets Groups Projects

fix change owner key

Merged Hugo Trentesaux requested to merge hugo-fix-change-owner-key into main
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -138,8 +138,7 @@ export class DataHandler {
@@ -138,8 +138,7 @@ export class DataHandler {
ctx.log.info(
ctx.log.info(
`Changed owner key of idty ${idtyChange.index} from ${idty.account.id} to ${new_account.id}`
`Changed owner key of idty ${idtyChange.index} from ${idty.account.id} to ${new_account.id}`
);
);
idty.account = new_account;
// add change owner key event
this.data.identities.set(idtyChange.index, idty);
this.data.changeOwnerKey.push(
this.data.changeOwnerKey.push(
new ChangeOwnerKey({
new ChangeOwnerKey({
id: idtyChange.id,
id: idtyChange.id,
@@ -149,6 +148,9 @@ export class DataHandler {
@@ -149,6 +148,9 @@ export class DataHandler {
blockNumber: idtyChange.blockNumber,
blockNumber: idtyChange.blockNumber,
})
})
);
);
 
// after adding the event we can update the identity
 
idty.account = new_account;
 
this.data.identities.set(idtyChange.index, idty);
}
}
// Process membership added
// Process membership added
Loading