Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@bosonprotocol/common": "1.32.2",
"@bosonprotocol/solidoc": "3.0.3",
"@eslint/eslintrc": "^3.3.5",
"@eslint/js": "^9.30.1",
"@eslint/js": "^10.0.1",
"@nomicfoundation/hardhat-ethers": "3.1.3",
"@nomicfoundation/hardhat-network-helpers": "1.1.2",
"@nomicfoundation/hardhat-toolbox": "6.0.0",
Expand Down
4 changes: 1 addition & 3 deletions scripts/util/dry-run.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ const environments = require("../../environments");

async function setupDryRun(env) {
let forkedChainId;
let forkedEnv = env;
const forkedEnv = env;

console.warn("This is a dry run. No actual upgrade will be performed");
({ chainId: forkedChainId } = await ethers.provider.getNetwork());

forkedEnv = env;

let deployerBalance = await getBalance();
// const blockNumber = await ethers.provider.getBlockNumber();

Expand Down
1 change: 1 addition & 0 deletions scripts/util/estimate-limits.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ let protocolDiamond,
groupHandler,
offerHandler,
twinHandler;
// eslint-disable-next-line no-unassigned-vars
let bosonVoucher;
let protocolFeePercentage, protocolFeeFlatBoson, buyerEscalationDepositPercentage;
let handlers = {};
Expand Down
2 changes: 1 addition & 1 deletion scripts/util/validations.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const { MaxUint256 } = ethers;
* @returns {boolean}
*/
function bigNumberIsValid(bigNumber, { optional, gt, lte, empty } = {}) {
let valid = true;
let valid;

if (optional && (bigNumber == undefined || bigNumber == null)) {
valid = true;
Expand Down
4 changes: 2 additions & 2 deletions test/protocol/clients/BosonVoucherTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -1195,12 +1195,12 @@ describe("IBosonVoucher", function () {
// Add five more ranges
// This tests more getPreMintStatus than ownerOf
// Might even be put into integration tests
let previousOfferId = Number(offerId);
const previousOfferId = Number(offerId);
let previousStartId = Number(start);
let ranges = [new Range(Number(start), length, amount, "0")];
length = Number(length);

offerId = ++previousOfferId;
offerId = previousOfferId + 1;

while (offerId <= 6) {
start = previousStartId + length + 100;
Expand Down
6 changes: 3 additions & 3 deletions test/util/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function getEvent(receipt, factory, eventName) {
} catch (e) {
if (e.message.includes("no matching event")) continue;
console.log("event error: ", e);
throw new Error(e);
throw new Error(e.message, { cause: e });
}
}
}
Expand All @@ -61,7 +61,7 @@ function getEvent(receipt, factory, eventName) {

function eventEmittedWithArgs(receipt, factory, eventName, args) {
let found = false;
let match = false;
let match;

const eventFragment = factory.interface.fragments.filter((e) => e.name == eventName);
const iface = new Interface(eventFragment);
Expand All @@ -85,7 +85,7 @@ function eventEmittedWithArgs(receipt, factory, eventName, args) {
} catch (e) {
if (e.message.includes("no matching event")) continue;
console.log("event error: ", e);
throw new Error(e);
throw new Error(e.message, { cause: e });
}
}
}
Expand Down
Loading