@exodus/ethereum-api 4.0.2 → 4.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-api",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Ethereum Api",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -36,5 +36,5 @@
36
36
  "devDependencies": {
37
37
  "@exodus/models": "^8.10.4"
38
38
  },
39
- "gitHead": "d3498091de0e60d3593995c846acbe62cacecc1c"
39
+ "gitHead": "1af733c9a00c108adaf9d302ae7a050ee2df8f78"
40
40
  }
@@ -61,7 +61,10 @@ export async function fetchGasLimit({
61
61
 
62
62
  const _isToken = isToken(asset)
63
63
  if (_isToken) {
64
- txInput = ethUtil.bufferToHex(asset.contract.transfer.build(toAddress, amount.toBaseString()))
64
+ // only create tx-input only if not pass tx-input to a token asset
65
+ if (txInput === '0x') {
66
+ txInput = ethUtil.bufferToHex(asset.contract.transfer.build(toAddress, amount.toBaseString()))
67
+ }
65
68
  amount = asset.baseAsset.currency.ZERO
66
69
  toAddress = asset.contract.address
67
70
  } else if (!isContract && !['ethereumarbone', 'ethereumarbnova'].includes(asset.name)) {