@across-protocol/sdk 3.4.1 → 3.4.2
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.
|
@@ -16,7 +16,7 @@ function eip1559(provider, opts) {
|
|
|
16
16
|
return [4, (0, linea_1.estimateGas)(provider, {
|
|
17
17
|
account: (_a = unsignedTx === null || unsignedTx === void 0 ? void 0 : unsignedTx.from) !== null && _a !== void 0 ? _a : constants_1.DEFAULT_SIMULATED_RELAYER_ADDRESS,
|
|
18
18
|
to: (_b = unsignedTx === null || unsignedTx === void 0 ? void 0 : unsignedTx.to) !== null && _b !== void 0 ? _b : constants_1.DEFAULT_SIMULATED_RELAYER_ADDRESS,
|
|
19
|
-
value: BigInt((_d = (_c = unsignedTx === null || unsignedTx === void 0 ? void 0 : unsignedTx.value) === null || _c === void 0 ? void 0 : _c.toString()) !== null && _d !== void 0 ? _d : "
|
|
19
|
+
value: BigInt((_d = (_c = unsignedTx === null || unsignedTx === void 0 ? void 0 : unsignedTx.value) === null || _c === void 0 ? void 0 : _c.toString()) !== null && _d !== void 0 ? _d : "0"),
|
|
20
20
|
data: (_e = unsignedTx === null || unsignedTx === void 0 ? void 0 : unsignedTx.data) !== null && _e !== void 0 ? _e : "0x",
|
|
21
21
|
})];
|
|
22
22
|
case 1:
|
|
@@ -30,7 +30,7 @@ export function eip1559(provider, opts) {
|
|
|
30
30
|
return [4 /*yield*/, estimateGas(provider, {
|
|
31
31
|
account: (_a = unsignedTx === null || unsignedTx === void 0 ? void 0 : unsignedTx.from) !== null && _a !== void 0 ? _a : account,
|
|
32
32
|
to: (_b = unsignedTx === null || unsignedTx === void 0 ? void 0 : unsignedTx.to) !== null && _b !== void 0 ? _b : account,
|
|
33
|
-
value: BigInt((_d = (_c = unsignedTx === null || unsignedTx === void 0 ? void 0 : unsignedTx.value) === null || _c === void 0 ? void 0 : _c.toString()) !== null && _d !== void 0 ? _d : "
|
|
33
|
+
value: BigInt((_d = (_c = unsignedTx === null || unsignedTx === void 0 ? void 0 : unsignedTx.value) === null || _c === void 0 ? void 0 : _c.toString()) !== null && _d !== void 0 ? _d : "0"),
|
|
34
34
|
data: (_e = unsignedTx === null || unsignedTx === void 0 ? void 0 : unsignedTx.data) !== null && _e !== void 0 ? _e : "0x",
|
|
35
35
|
})];
|
|
36
36
|
case 1:
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ export async function eip1559(
|
|
|
30
30
|
const { baseFeePerGas, priorityFeePerGas: _priorityFeePerGas } = await estimateGas(provider, {
|
|
31
31
|
account: (unsignedTx?.from as Address) ?? account,
|
|
32
32
|
to: (unsignedTx?.to as Address) ?? account,
|
|
33
|
-
value: BigInt(unsignedTx?.value?.toString() ?? "
|
|
33
|
+
value: BigInt(unsignedTx?.value?.toString() ?? "0"),
|
|
34
34
|
data: (unsignedTx?.data as Hex) ?? "0x",
|
|
35
35
|
});
|
|
36
36
|
const priorityFeePerGas =
|