@cityofzion/bs-neo3 3.1.11 → 3.1.12

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.
@@ -52,7 +52,7 @@ class ClaimServiceNeo3 {
52
52
  const { rpc } = BSNeo3NeonJsSingletonHelper_1.BSNeo3NeonJsSingletonHelper.getInstance();
53
53
  const rpcClient = new rpc.RPCClient(this._service.network.url);
54
54
  const response = await rpcClient.getUnclaimedGas(address);
55
- return new blockchain_service_1.BSBigHumanAmount(response, this.claimToken.decimals).toFormatted();
55
+ return new blockchain_service_1.BSBigUnitAmount(response, this.claimToken.decimals).toHuman().toFormatted();
56
56
  }
57
57
  async calculateFee(senderAccount) {
58
58
  const claimParams = __classPrivateFieldGet(this, _ClaimServiceNeo3_instances, "m", _ClaimServiceNeo3_buildClaimParams).call(this, senderAccount);
@@ -63,8 +63,7 @@ class ClaimServiceNeo3 {
63
63
  const claimEvent = await this._buildTransactionEvent(senderAccount.address);
64
64
  const [transaction] = await this._service.transfer(claimParams);
65
65
  transaction.events.push(claimEvent);
66
- const data = { isClaim: true };
67
- transaction.data = data;
66
+ transaction.data = { isClaim: true };
68
67
  return transaction;
69
68
  }
70
69
  getTransactionData(transaction) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/bs-neo3",
3
- "version": "3.1.11",
3
+ "version": "3.1.12",
4
4
  "repository": "https://github.com/CityOfZion/blockchain-services",
5
5
  "license": "GPL-3.0-only",
6
6
  "author": "Coz",
@@ -19,7 +19,7 @@
19
19
  "@cityofzion/neon-dappkit": "~0.6.0",
20
20
  "@cityofzion/neon-js": "~5.8.1",
21
21
  "axios": "~1.15.0",
22
- "@cityofzion/blockchain-service": "3.1.11"
22
+ "@cityofzion/blockchain-service": "3.1.12"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@cityofzion/neon-dappkit-types": "~0.5.0",