@leofcoin/standards 0.1.4 → 0.1.5

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
@@ -32,9 +32,9 @@ class Token extends Roles {
32
32
  super(state?.roles);
33
33
  if (state) {
34
34
  this.#holders = BigNumber['from'](state.holders);
35
- this.#balances = state.balances;
36
- this.#approvals = state.approvals;
37
- this.#totalSupply = state.totalSupply;
35
+ this.#balances = BigNumber['from'](state.balances);
36
+ this.#approvals = BigNumber['from'](state.approvals);
37
+ this.#totalSupply = BigNumber['from'](state.totalSupply);
38
38
  }
39
39
  else {
40
40
  this.#name = name;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/standards",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Contract standards",
5
5
  "type": "module",
6
6
  "exports": {
package/src/token.ts CHANGED
@@ -43,9 +43,9 @@ export default class Token extends Roles {
43
43
 
44
44
  if (state) {
45
45
  this.#holders = BigNumber['from'](state.holders)
46
- this.#balances = state.balances
47
- this.#approvals = state.approvals
48
- this.#totalSupply = state.totalSupply
46
+ this.#balances = BigNumber['from'](state.balances)
47
+ this.#approvals = BigNumber['from'](state.approvals)
48
+ this.#totalSupply = BigNumber['from'](state.totalSupply)
49
49
  } else {
50
50
  this.#name = name
51
51
  this.#symbol = symbol