diff --git a/contracts/0.4.24/nos/NodeOperatorsRegistry.sol b/contracts/0.4.24/nos/NodeOperatorsRegistry.sol index df5d755b82..78a5137c26 100644 --- a/contracts/0.4.24/nos/NodeOperatorsRegistry.sol +++ b/contracts/0.4.24/nos/NodeOperatorsRegistry.sol @@ -275,6 +275,11 @@ contract NodeOperatorsRegistry is AragonApp, Versioned { _initialize_v4(_exitDeadlineThresholdInSeconds); } + /// @notice Overrides default AragonApp behaviour to disallow recovery + function transferToVault(address /* _token */) external { + revert("NOT_SUPPORTED"); + } + /// @notice Add node operator named `name` with reward address `rewardAddress` and staking limit = 0 validators /// @param _name Human-readable name /// @param _rewardAddress Ethereum 1 address which receives stETH rewards for this operator diff --git a/test/0.4.24/nor/nor.aux.test.ts b/test/0.4.24/nor/nor.aux.test.ts index 7410dcfb3c..73ab5f3e04 100644 --- a/test/0.4.24/nor/nor.aux.test.ts +++ b/test/0.4.24/nor/nor.aux.test.ts @@ -1,5 +1,5 @@ import { expect } from "chai"; -import { encodeBytes32String } from "ethers"; +import { encodeBytes32String, ZeroAddress } from "ethers"; import { ethers } from "hardhat"; import { HardhatEthersSigner } from "@nomicfoundation/hardhat-ethers/signers"; @@ -304,4 +304,10 @@ describe("NodeOperatorsRegistry.sol:auxiliary", () => { .withArgs(nonce + 1n); }); }); + + context("transferToVault", () => { + it("Reverts always", async () => { + await expect(nor.transferToVault(ZeroAddress)).to.be.revertedWith("NOT_SUPPORTED"); + }); + }); });