From 248357f9cb088cdc21496049c5f916e30f1facb5 Mon Sep 17 00:00:00 2001 From: Edmund Edgar Date: Thu, 7 Mar 2024 01:29:52 +0000 Subject: [PATCH] Rename modifier in accordance with https://github.com/RealityETH/reality-eth-monorepo/issues/148 --- contracts/ForkableRealityETH_ERC20.sol | 2 +- package-lock.json | 16 +++++++++------- package.json | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/contracts/ForkableRealityETH_ERC20.sol b/contracts/ForkableRealityETH_ERC20.sol index 61edb3f5..6bdf3347 100644 --- a/contracts/ForkableRealityETH_ERC20.sol +++ b/contracts/ForkableRealityETH_ERC20.sol @@ -22,7 +22,7 @@ contract ForkableRealityETH_ERC20 is // Asking questions is locked down the the forkmanager. // This isn't strictly necessary but it reduces the attack surface. // TODO: We might want to replace this with a governance contract owned by the forkmanager. - modifier permittedQuestionerOnly() override { + modifier onlyPermittedQuestioner() override { if (msg.sender != forkmanager) revert PermittedQuestionerOnly(); _; } diff --git a/package-lock.json b/package-lock.json index a184e5ac..0115d05e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,7 @@ "@openzeppelin/contracts": "^4.9.5", "@openzeppelin/contracts-upgradeable": "^4.9.5", "@openzeppelin/hardhat-upgrades": "1.22.1", - "@reality.eth/contracts": "4.0.0-rc.7", + "@reality.eth/contracts": "4.0.0-rc.8", "@RealityETH/zkevm-contracts": "github:RealityETH/zkevm-contracts#a090458140cdfce23763af887ff0767469368923", "@types/sinon-chai": "^3.2.3", "circomlibjs": "0.1.1", @@ -2279,9 +2279,9 @@ } }, "node_modules/@reality.eth/contracts": { - "version": "4.0.0-rc.7", - "resolved": "https://registry.npmjs.org/@reality.eth/contracts/-/contracts-4.0.0-rc.7.tgz", - "integrity": "sha512-nRzaxS8wJXTL8Zm6p+7tdM+mZxJco1i6Z4JuDY6KeHcXfvRCl8j1h6uTIZT6RfY6R1H0Pd2ADa4oCvSbBk6gdA==", + "version": "4.0.0-rc.8", + "resolved": "https://registry.npmjs.org/@reality.eth/contracts/-/contracts-4.0.0-rc.8.tgz", + "integrity": "sha512-IPlunZZfGae6C2DAOD/+QObwpVXlIVmMSY0UqMOQW7b9DWOfcSys3UjXZMhFn4sdna+ag9HFk+cUm08C1bRSmg==", "dev": true, "dependencies": { "ethers": "^5.6.8" @@ -6128,6 +6128,7 @@ "version": "4.0.5", "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.5.tgz", "integrity": "sha512-HTm14iMQKK2FjFLRTM5lAVcyaUzOnqbPtesFIvREgXpJHdQm8bWS+GkQgIkfaBYRHuCnea7w8UVNfwiAQhlr9A==", + "hasInstallScript": true, "optional": true, "dependencies": { "node-gyp-build": "^4.3.0" @@ -6464,6 +6465,7 @@ "version": "5.0.7", "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.7.tgz", "integrity": "sha512-vLt1O5Pp+flcArHGIyKEQq883nBt8nN8tVBcoL0qUXj2XT1n7p70yGIq2VK98I5FdZ1YHc0wk/koOnHjnXWk1Q==", + "hasInstallScript": true, "optional": true, "dependencies": { "node-gyp-build": "^4.3.0" @@ -14193,9 +14195,9 @@ "requires": {} }, "@reality.eth/contracts": { - "version": "4.0.0-rc.7", - "resolved": "https://registry.npmjs.org/@reality.eth/contracts/-/contracts-4.0.0-rc.7.tgz", - "integrity": "sha512-nRzaxS8wJXTL8Zm6p+7tdM+mZxJco1i6Z4JuDY6KeHcXfvRCl8j1h6uTIZT6RfY6R1H0Pd2ADa4oCvSbBk6gdA==", + "version": "4.0.0-rc.8", + "resolved": "https://registry.npmjs.org/@reality.eth/contracts/-/contracts-4.0.0-rc.8.tgz", + "integrity": "sha512-IPlunZZfGae6C2DAOD/+QObwpVXlIVmMSY0UqMOQW7b9DWOfcSys3UjXZMhFn4sdna+ag9HFk+cUm08C1bRSmg==", "dev": true, "requires": { "ethers": "^5.6.8" diff --git a/package.json b/package.json index 0c510d35..6739ea34 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "@openzeppelin/contracts": "^4.9.5", "@openzeppelin/contracts-upgradeable": "^4.9.5", "@openzeppelin/hardhat-upgrades": "1.22.1", - "@reality.eth/contracts": "4.0.0-rc.7", + "@reality.eth/contracts": "4.0.0-rc.8", "@RealityETH/zkevm-contracts": "github:RealityETH/zkevm-contracts#a090458140cdfce23763af887ff0767469368923", "@types/sinon-chai": "^3.2.3", "circomlibjs": "0.1.1",