From 41555c7b8a0cda8d15a149e7c2f05fdc546b0313 Mon Sep 17 00:00:00 2001 From: Pascal Marco Caversaccio Date: Tue, 21 Jan 2025 16:52:58 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Refactor=20Mock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pascal Marco Caversaccio --- src/snekmate/utils/mocks/pausable_mock.vy | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/snekmate/utils/mocks/pausable_mock.vy b/src/snekmate/utils/mocks/pausable_mock.vy index 53305865..53986f1d 100644 --- a/src/snekmate/utils/mocks/pausable_mock.vy +++ b/src/snekmate/utils/mocks/pausable_mock.vy @@ -14,20 +14,13 @@ initializes: ps # @dev We export (i.e. the runtime bytecode exposes these # functions externally, allowing them to be called using -# the ABI encoding specification) all `external` functions -# from the `pausable` module. The built-in dunder method -# `__interface__` allows you to export all functions of a -# module without specifying the individual functions (see -# https://github.com/vyperlang/vyper/pull/3919). Please take -# note that if you do not know the full interface of a module -# contract, you can get the `.vyi` interface in Vyper by using -# `vyper -f interface your_filename.vy` or the external interface -# by using `vyper -f external_interface your_filename.vy`. +# the ABI encoding specification) the `external` getter +# function `paused` from the `pausable` module. # @notice Please note that you must always also export (if # required by the contract logic) `public` declared `constant`, # `immutable`, and state variables, for which Vyper automatically # generates an `external` getter function for the variable. -exports: ps.__interface__ +exports: ps.paused @deploy