@atomiqlabs/chain-evm 1.0.0-dev.67 → 1.0.0-dev.68

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.
@@ -67,7 +67,8 @@ class EVMFees {
67
67
  const [baseFee, priorityFee] = feeRate.split(",");
68
68
  tx.maxFeePerGas = BigInt(baseFee) + BigInt(priorityFee);
69
69
  tx.maxPriorityFeePerGas = BigInt(priorityFee);
70
- tx.gasLimit = BigInt(gas);
70
+ if (gas != null)
71
+ tx.gasLimit = BigInt(gas);
71
72
  }
72
73
  }
73
74
  exports.EVMFees = EVMFees;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/chain-evm",
3
- "version": "1.0.0-dev.67",
3
+ "version": "1.0.0-dev.68",
4
4
  "description": "EVM specific base implementation",
5
5
  "main": "./dist/index.js",
6
6
  "types:": "./dist/index.d.ts",
@@ -98,7 +98,7 @@ export class EVMFees {
98
98
 
99
99
  tx.maxFeePerGas = BigInt(baseFee) + BigInt(priorityFee);
100
100
  tx.maxPriorityFeePerGas = BigInt(priorityFee);
101
- tx.gasLimit = BigInt(gas);
101
+ if(gas!=null) tx.gasLimit = BigInt(gas);
102
102
  }
103
103
 
104
104
  }