Governance bug fixed with profile signing

This commit is contained in:
Luis Fernando Molina committed 2021-06-17 19:52:10 +02:00
1 parent 22dc7a774c
commit 835d8368a9
2 files changed
+5 -8

No files matched your search

@@ -325,7 +325,7 @@ function newCircularMenuItem() {
/* The first click ask for confirmation. */
if (temporaryStatus === STATUS_NO_ACTION_TAKEN_YET) {
setStatus(thisObject.confirmationLabel, UI_COLOR.GOLDEN_ORANGE, 100, STATUS_WAITING_CONFIRMATION)
setStatus(thisObject.confirmationLabel, UI_COLOR.GOLDEN_ORANGE, 250, STATUS_WAITING_CONFIRMATION)
return
}
/* A Click during confirmation executes the pre-defined action. */
@@ -24,7 +24,6 @@ function newGovernanceFunctionLibraryProfileConstructor() {
}
createNewAccount()
signUserProfileData()
function createNewAccount() {
let params = {
@@ -52,15 +51,11 @@ function newGovernanceFunctionLibraryProfileConstructor() {
return
}
UI.projects.foundations.utilities.nodeConfig.saveConfigProperty(node.payload, 'address', response.address)
UI.projects.foundations.utilities.nodeConfig.saveConfigProperty(node.payload, 'privateKey', response.privateKey)
signUserProfileData(response.address, response.privateKey)
}
}
function signUserProfileData() {
let privateKey = UI.projects.foundations.utilities.nodeConfig.loadConfigProperty(node.payload, 'privateKey')
if (privateKey === undefined || privateKey === "") { return }
function signUserProfileData(address, privateKey) {
let request = {
url: 'WEB3',
@@ -89,6 +84,8 @@ function newGovernanceFunctionLibraryProfileConstructor() {
return
}
UI.projects.foundations.utilities.nodeConfig.saveConfigProperty(node.payload.referenceParent.payload, 'signature', response.signature)
UI.projects.foundations.utilities.nodeConfig.saveConfigProperty(node.payload, 'address', address)
UI.projects.foundations.utilities.nodeConfig.saveConfigProperty(node.payload, 'privateKey', privateKey)
node.payload.uiObject.setInfoMessage("Profile Account has been successfully created.")
}