@dynamic-labs/ethereum-core 4.61.3 → 4.61.5

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/CHANGELOG.md CHANGED
@@ -1,4 +1,13 @@
1
1
 
2
+ ### [4.61.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.4...v4.61.5) (2026-02-19)
3
+
4
+
5
+ ### Features
6
+
7
+ * add getProjectSettings method to webview ([#10452](https://github.com/dynamic-labs/dynamic-auth/issues/10452)) ([d78b926](https://github.com/dynamic-labs/dynamic-auth/commit/d78b926e4a0c9ff4f7e213f094346a130b1f4bd8))
8
+
9
+ ### [4.61.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.3...v4.61.4) (2026-02-15)
10
+
2
11
  ### [4.61.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.2...v4.61.3) (2026-02-13)
3
12
 
4
13
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.61.3";
6
+ var version = "4.61.5";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.61.3";
2
+ var version = "4.61.5";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum-core",
3
- "version": "4.61.3",
3
+ "version": "4.61.5",
4
4
  "description": "Core package for utilities and types for viem",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -19,13 +19,13 @@
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
21
  "@dynamic-labs/sdk-api-core": "0.0.864",
22
- "@dynamic-labs/assert-package-version": "4.61.3",
23
- "@dynamic-labs/logger": "4.61.3",
24
- "@dynamic-labs/rpc-providers": "4.61.3",
25
- "@dynamic-labs/types": "4.61.3",
26
- "@dynamic-labs/utils": "4.61.3",
27
- "@dynamic-labs/wallet-book": "4.61.3",
28
- "@dynamic-labs/wallet-connector-core": "4.61.3"
22
+ "@dynamic-labs/assert-package-version": "4.61.5",
23
+ "@dynamic-labs/logger": "4.61.5",
24
+ "@dynamic-labs/rpc-providers": "4.61.5",
25
+ "@dynamic-labs/types": "4.61.5",
26
+ "@dynamic-labs/utils": "4.61.5",
27
+ "@dynamic-labs/wallet-book": "4.61.5",
28
+ "@dynamic-labs/wallet-connector-core": "4.61.5"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "viem": "^2.28.4"
@@ -19,6 +19,13 @@ class Eip1559FeeFeed {
19
19
  return _tslib.__awaiter(this, void 0, void 0, function* () {
20
20
  try {
21
21
  const l1Fee = yield this.estimateL1Fee();
22
+ // Handle the case where max fee per gas is explicitly set to 0
23
+ if (this.initialGasLimit && this.initialMaxFeePerGas === BigInt(0)) {
24
+ this.fee.gas = l1Fee;
25
+ this.maxPriorityFeePerGas = BigInt(0);
26
+ this.maxFeePerGas = BigInt(0);
27
+ return;
28
+ }
22
29
  // Original transaction already defined the gas limit and max fee per gas
23
30
  if (this.initialGasLimit && this.initialMaxFeePerGas) {
24
31
  this.fee.gas = this.initialGasLimit * this.initialMaxFeePerGas + l1Fee;
@@ -26,9 +33,19 @@ class Eip1559FeeFeed {
26
33
  }
27
34
  // Estimate the gas limit
28
35
  const gasLimit = yield this.estimateGas();
36
+ let overrideMaxFeePerGas = false;
37
+ //Special case: if a developer sets the max fee per gas to 0, we need to override the max fee per gas to 0
38
+ // So that it doesn't magically gets overriden later on.
39
+ if (this.initialMaxFeePerGas === BigInt(0)) {
40
+ overrideMaxFeePerGas = true;
41
+ }
29
42
  // Original transaction defined the max fee per gas
30
- if (this.initialMaxFeePerGas) {
43
+ if (this.initialMaxFeePerGas || overrideMaxFeePerGas) {
31
44
  this.fee.gas = gasLimit * this.initialMaxFeePerGas + l1Fee;
45
+ if (overrideMaxFeePerGas) {
46
+ this.maxPriorityFeePerGas = BigInt(0);
47
+ this.maxFeePerGas = BigInt(0);
48
+ }
32
49
  return;
33
50
  }
34
51
  // Estimate max fee per gas
@@ -37,8 +54,14 @@ class Eip1559FeeFeed {
37
54
  return;
38
55
  }
39
56
  this.fee.gas = gasLimit * estimatedFeesPerGas.maxFeePerGas + l1Fee;
40
- this.maxFeePerGas = estimatedFeesPerGas.maxFeePerGas;
41
- this.maxPriorityFeePerGas = estimatedFeesPerGas.maxPriorityFeePerGas;
57
+ this.maxFeePerGas =
58
+ this.maxFeePerGas === BigInt(0)
59
+ ? this.maxFeePerGas
60
+ : estimatedFeesPerGas.maxFeePerGas;
61
+ this.maxPriorityFeePerGas =
62
+ this.maxPriorityFeePerGas === BigInt(0)
63
+ ? this.maxPriorityFeePerGas
64
+ : estimatedFeesPerGas.maxPriorityFeePerGas;
42
65
  }
43
66
  catch (error) {
44
67
  logger.logger.debug(error);
@@ -15,6 +15,13 @@ class Eip1559FeeFeed {
15
15
  return __awaiter(this, void 0, void 0, function* () {
16
16
  try {
17
17
  const l1Fee = yield this.estimateL1Fee();
18
+ // Handle the case where max fee per gas is explicitly set to 0
19
+ if (this.initialGasLimit && this.initialMaxFeePerGas === BigInt(0)) {
20
+ this.fee.gas = l1Fee;
21
+ this.maxPriorityFeePerGas = BigInt(0);
22
+ this.maxFeePerGas = BigInt(0);
23
+ return;
24
+ }
18
25
  // Original transaction already defined the gas limit and max fee per gas
19
26
  if (this.initialGasLimit && this.initialMaxFeePerGas) {
20
27
  this.fee.gas = this.initialGasLimit * this.initialMaxFeePerGas + l1Fee;
@@ -22,9 +29,19 @@ class Eip1559FeeFeed {
22
29
  }
23
30
  // Estimate the gas limit
24
31
  const gasLimit = yield this.estimateGas();
32
+ let overrideMaxFeePerGas = false;
33
+ //Special case: if a developer sets the max fee per gas to 0, we need to override the max fee per gas to 0
34
+ // So that it doesn't magically gets overriden later on.
35
+ if (this.initialMaxFeePerGas === BigInt(0)) {
36
+ overrideMaxFeePerGas = true;
37
+ }
25
38
  // Original transaction defined the max fee per gas
26
- if (this.initialMaxFeePerGas) {
39
+ if (this.initialMaxFeePerGas || overrideMaxFeePerGas) {
27
40
  this.fee.gas = gasLimit * this.initialMaxFeePerGas + l1Fee;
41
+ if (overrideMaxFeePerGas) {
42
+ this.maxPriorityFeePerGas = BigInt(0);
43
+ this.maxFeePerGas = BigInt(0);
44
+ }
28
45
  return;
29
46
  }
30
47
  // Estimate max fee per gas
@@ -33,8 +50,14 @@ class Eip1559FeeFeed {
33
50
  return;
34
51
  }
35
52
  this.fee.gas = gasLimit * estimatedFeesPerGas.maxFeePerGas + l1Fee;
36
- this.maxFeePerGas = estimatedFeesPerGas.maxFeePerGas;
37
- this.maxPriorityFeePerGas = estimatedFeesPerGas.maxPriorityFeePerGas;
53
+ this.maxFeePerGas =
54
+ this.maxFeePerGas === BigInt(0)
55
+ ? this.maxFeePerGas
56
+ : estimatedFeesPerGas.maxFeePerGas;
57
+ this.maxPriorityFeePerGas =
58
+ this.maxPriorityFeePerGas === BigInt(0)
59
+ ? this.maxPriorityFeePerGas
60
+ : estimatedFeesPerGas.maxPriorityFeePerGas;
38
61
  }
39
62
  catch (error) {
40
63
  logger.debug(error);