@atomiqlabs/chain-evm 1.0.0-dev.66 → 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;
@@ -78,6 +78,7 @@ class EVMPersistentSigner extends EVMSigner_1.EVMSigner {
78
78
  this.pendingTxs.delete(nonce);
79
79
  data.txs.forEach(tx => this.chainInterface.Transactions._knownTxSet.delete(tx.hash));
80
80
  this.logger.info("checkPastTransactions(): Tx confirmed, required fee bumps: ", data.txs.length);
81
+ this.save();
81
82
  continue;
82
83
  }
83
84
  const lastTx = data.txs[data.txs.length - 1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/chain-evm",
3
- "version": "1.0.0-dev.66",
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
  }
@@ -134,6 +134,7 @@ export class EVMPersistentSigner extends EVMSigner {
134
134
  this.pendingTxs.delete(nonce);
135
135
  data.txs.forEach(tx => this.chainInterface.Transactions._knownTxSet.delete(tx.hash));
136
136
  this.logger.info("checkPastTransactions(): Tx confirmed, required fee bumps: ", data.txs.length);
137
+ this.save();
137
138
  continue;
138
139
  }
139
140