diff --git a/doc/release-notes/release-notes-3.0.3.md b/doc/release-notes/release-notes-3.0.3.md new file mode 100644 index 00000000..7efc6e04 --- /dev/null +++ b/doc/release-notes/release-notes-3.0.3.md @@ -0,0 +1,13 @@ +# Altitude 3.0.3 + +This is a patch release. + +Please report bugs using the issue tracker at github: https://github.com/thelindaprojectinc/altitude/issues + +## How to Upgrade +Shutdown Altitude if it is already running and then run the installer. + +## About this Release + +### Bug Fixes +- Fixed issue with Governors not unenrolling. diff --git a/package.json b/package.json index f4b38740..f4456ad0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "altitude-metrix-wallet", - "version": "3.0.2", + "version": "3.0.3", "description": "The Altitude wallet", "homepage": "https://github.com/thelindaprojectinc/altitude", "author": { diff --git a/src/app/dgp/pages/governance/governance.component.ts b/src/app/dgp/pages/governance/governance.component.ts index 3dd544d8..ccb92fe7 100644 --- a/src/app/dgp/pages/governance/governance.component.ts +++ b/src/app/dgp/pages/governance/governance.component.ts @@ -146,7 +146,7 @@ export class GovernanceComponent { this.notification.loading('DGP.NOTIFICATIONS.UNENROLLINGGOVERNOR'); try { - await this.dgpService.enrollGovernor(passphrase); + await this.dgpService.unenrollGovernor(passphrase); this.notification.notify('success', 'DGP.NOTIFICATIONS.UNENROLLEDGOVERNOR'); } catch (ex) { if (isDevMode()) console.log(ex); diff --git a/src/app/dgp/providers/dgp.service.ts b/src/app/dgp/providers/dgp.service.ts index 3439b118..4fd07e1d 100644 --- a/src/app/dgp/providers/dgp.service.ts +++ b/src/app/dgp/providers/dgp.service.ts @@ -152,8 +152,7 @@ export class DGPService { let gasPrice: Big = Helpers.fromSatoshi(Big(this.dgpInfo.mingasprice)); - const args = [GovernanceContract.ADDRESS, this.encodeContractString(GovernanceContract.UNENROLL), 0, this.defaultGasLimit, gasPrice.toFixed(8), this.governor.address] - console.log(args) + const args = [GovernanceContract.ADDRESS, GovernanceContract.UNENROLL, 0, this.defaultGasLimit, gasPrice.toFixed(8), this.governor.address]; let data: any = await this.rpc.requestData(RPCMethods.SENDTOCONTRACT, args); this.rpc.lockWalletAfterCommand(passphrase); if (!data.error) return data;