Skip to content

Commit

Permalink
Merge pull request #40 from nibbles83/master
Browse files Browse the repository at this point in the history
Fix to ensure unenroll is called
  • Loading branch information
davidstoneham authored Nov 14, 2020
2 parents 1e63135 + b5acee7 commit 8d9991e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
13 changes: 13 additions & 0 deletions doc/release-notes/release-notes-3.0.3.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/app/dgp/pages/governance/governance.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions src/app/dgp/providers/dgp.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8d9991e

Please sign in to comment.