@leofcoin/standards 0.2.10 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/exports/token.js CHANGED
@@ -129,9 +129,9 @@ class Token extends Roles {
129
129
  }
130
130
  #updateHolders(address, previousBalance) {
131
131
  if (this.#balances[address] === 0n)
132
- this.#holders - 1n;
132
+ this.#holders -= 1n;
133
133
  else if (this.#balances[address] !== 0n && previousBalance === 0n)
134
- this.#holders + 1n;
134
+ this.#holders += 1n;
135
135
  }
136
136
  #increaseBalance(address, amount) {
137
137
  if (!this.#balances[address])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/standards",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "Contract standards",
5
5
  "type": "module",
6
6
  "exports": {
package/src/lock.ts CHANGED
@@ -121,8 +121,8 @@ export default class Lock extends PublicVoting implements IVoting {
121
121
  }
122
122
 
123
123
  #updateHolders(address: address, previousBalance: bigint) {
124
- if (this.#balances[address] === 0n) this.#holders - 1n
125
- else if (this.#balances[address] !== 0n && previousBalance === 0n) this.#holders + 1n
124
+ if (this.#balances[address] === 0n) this.#holders -= 1n
125
+ else if (this.#balances[address] !== 0n && previousBalance === 0n) this.#holders += 1n
126
126
  }
127
127
 
128
128
  #increaseBalance(address: address, amount: bigint) {
package/src/staking.ts CHANGED
@@ -120,8 +120,8 @@ export default class Staking extends Roles {
120
120
  }
121
121
 
122
122
  #updateHolders(address: address, previousBalance: bigint) {
123
- if (this.#balances[address] === 0n) this.#holders - 1n
124
- else if (this.#balances[address] !== 0n && previousBalance === 0n) this.#holders + 1n
123
+ if (this.#balances[address] === 0n) this.#holders -= 1n
124
+ else if (this.#balances[address] !== 0n && previousBalance === 0n) this.#holders += 1n
125
125
  }
126
126
 
127
127
  #increaseBalance(address: address, amount: bigint) {
package/src/token.ts CHANGED
@@ -150,8 +150,8 @@ export default class Token extends Roles {
150
150
  }
151
151
 
152
152
  #updateHolders(address: address, previousBalance: bigint) {
153
- if (this.#balances[address] === 0n) this.#holders - 1n
154
- else if (this.#balances[address] !== 0n && previousBalance === 0n) this.#holders + 1n
153
+ if (this.#balances[address] === 0n) this.#holders -= 1n
154
+ else if (this.#balances[address] !== 0n && previousBalance === 0n) this.#holders += 1n
155
155
  }
156
156
 
157
157
  #increaseBalance(address: address, amount: bigint) {