@locuschain/lib 0.1.10 → 0.1.14

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.
@@ -19549,6 +19549,8 @@ define(['exports', '../utils/index.amd', '../chunks/rpc-yDRMApre', 'lodash', '..
19549
19549
  }
19550
19550
  };
19551
19551
  const encodeArgHex = (inputs, paramOriginValues) => {
19552
+ console.log('inputs', inputs);
19553
+ console.log('paramOriginValues', paramOriginValues);
19552
19554
  const paramTypes = [];
19553
19555
  const paramValues = [];
19554
19556
  let idx = 0;
@@ -19872,13 +19874,13 @@ define(['exports', '../utils/index.amd', '../chunks/rpc-yDRMApre', 'lodash', '..
19872
19874
  amount: '0',
19873
19875
  fuelLimit: '0',
19874
19876
  tokenAmounts: [],
19875
- func: this.encodeFunc(func),
19876
- argData: this.encodeFunc(func, removeHexPrefix(argDataHex)),
19877
+ func: this.encodeFunc(func, removeHexPrefix(argDataHex)),
19878
+ argData: '',
19877
19879
  feeType: 0,
19878
19880
  sign: '',
19879
19881
  signedHeight: 0
19880
19882
  });
19881
- const result = rpc.convertDataToHex(rpcResult.data.Result);
19883
+ const result = rpc.convertDataToHex(rpcResult.result);
19882
19884
  const resultArr = ___namespace.values(this.decodeContractResult(func, result));
19883
19885
  return resultArr[0];
19884
19886
  }
@@ -19554,6 +19554,8 @@ const convertJsonToFuncString = (item) => {
19554
19554
  }
19555
19555
  };
19556
19556
  const encodeArgHex = (inputs, paramOriginValues) => {
19557
+ console.log('inputs', inputs);
19558
+ console.log('paramOriginValues', paramOriginValues);
19557
19559
  const paramTypes = [];
19558
19560
  const paramValues = [];
19559
19561
  let idx = 0;
@@ -19877,13 +19879,13 @@ class ERC20Helper {
19877
19879
  amount: '0',
19878
19880
  fuelLimit: '0',
19879
19881
  tokenAmounts: [],
19880
- func: this.encodeFunc(func),
19881
- argData: this.encodeFunc(func, removeHexPrefix(argDataHex)),
19882
+ func: this.encodeFunc(func, removeHexPrefix(argDataHex)),
19883
+ argData: '',
19882
19884
  feeType: 0,
19883
19885
  sign: '',
19884
19886
  signedHeight: 0
19885
19887
  });
19886
- const result = rpc.convertDataToHex(rpcResult.data.Result);
19888
+ const result = rpc.convertDataToHex(rpcResult.result);
19887
19889
  const resultArr = ___namespace.values(this.decodeContractResult(func, result));
19888
19890
  return resultArr[0];
19889
19891
  }
@@ -19533,6 +19533,8 @@ const convertJsonToFuncString = (item) => {
19533
19533
  }
19534
19534
  };
19535
19535
  const encodeArgHex = (inputs, paramOriginValues) => {
19536
+ console.log('inputs', inputs);
19537
+ console.log('paramOriginValues', paramOriginValues);
19536
19538
  const paramTypes = [];
19537
19539
  const paramValues = [];
19538
19540
  let idx = 0;
@@ -19856,13 +19858,13 @@ class ERC20Helper {
19856
19858
  amount: '0',
19857
19859
  fuelLimit: '0',
19858
19860
  tokenAmounts: [],
19859
- func: this.encodeFunc(func),
19860
- argData: this.encodeFunc(func, removeHexPrefix(argDataHex)),
19861
+ func: this.encodeFunc(func, removeHexPrefix(argDataHex)),
19862
+ argData: '',
19861
19863
  feeType: 0,
19862
19864
  sign: '',
19863
19865
  signedHeight: 0
19864
19866
  });
19865
- const result = convertDataToHex(rpcResult.data.Result);
19867
+ const result = convertDataToHex(rpcResult.result);
19866
19868
  const resultArr = _.values(this.decodeContractResult(func, result));
19867
19869
  return resultArr[0];
19868
19870
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locuschain/lib",
3
- "version": "0.1.10",
3
+ "version": "0.1.14",
4
4
  "type": "module",
5
5
  "author": "bloomtechnology",
6
6
  "license": "MIT",