@uniswap/conedison
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -68,3 +68,3 @@ var __assign = (this && this.__assign) || function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var gasLimit, hash, error_1; | ||
var signer, gasLimit, hash, error_1; | ||
var _this = this; | ||
@@ -74,4 +74,5 @@ return __generator(this, function (_a) { | ||
case 0: | ||
signer = provider.getSigner(); | ||
if (!!skipGasLimit) return [3 /*break*/, 2]; | ||
return [4 /*yield*/, provider.estimateGas(transaction)]; | ||
return [4 /*yield*/, signer.estimateGas(transaction)]; | ||
case 1: | ||
@@ -83,3 +84,3 @@ gasLimit = _a.sent(); | ||
_a.label = 2; | ||
case 2: return [4 /*yield*/, provider.getSigner().sendUncheckedTransaction(__assign(__assign({}, transaction), { gasLimit: gasLimit }))]; | ||
case 2: return [4 /*yield*/, signer.sendUncheckedTransaction(__assign(__assign({}, transaction), { gasLimit: gasLimit }))]; | ||
case 3: | ||
@@ -86,0 +87,0 @@ hash = _a.sent(); |
@@ -57,6 +57,8 @@ var __assign = (this && this.__assign) || function () { | ||
var response = {}; | ||
var signer = { sendUncheckedTransaction: sendUncheckedTransaction }; | ||
var signer = { | ||
estimateGas: jest.fn().mockResolvedValue(BigNumber.from(10)), | ||
sendUncheckedTransaction: sendUncheckedTransaction, | ||
}; | ||
var provider = { | ||
once: jest.fn(), | ||
estimateGas: jest.fn().mockResolvedValue(BigNumber.from(10)), | ||
getSigner: jest.fn().mockReturnValue(signer), | ||
@@ -63,0 +65,0 @@ getTransaction: getTransaction, |
{ | ||
"name": "@uniswap/conedison", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "Utilities for Uniswap front-end development", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/Uniswap/conedison", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59130
1171