Skip to content

Commit

Permalink
feat: add snekmate based mock
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoCentonze committed Feb 11, 2025
1 parent 800be49 commit 2d1d942
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/mocks/MockERC20.vy
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# pragma version ~=0.4.0

from snekmate.tokens import erc20
from snekmate.auth import ownable

initializes: ownable
initializes: erc20[ownable := ownable]

exports: erc20.__interface__


@deploy
def __init__(decimals: uint8):
ownable.__init__()
erc20.__init__("mock", "mock", decimals, "mock", "mock")

0 comments on commit 2d1d942

Please sign in to comment.