Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add r/demo/tests/test20 #2549

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
3 changes: 3 additions & 0 deletions examples/gno.land/r/demo/tests/test20/gno.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module gno.land/r/demo/tests/test20

require gno.land/p/demo/grc/grc20 v0.0.0-latest
18 changes: 18 additions & 0 deletions examples/gno.land/r/demo/tests/test20/test20.gno
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Package test20 implements a deliberately insecure ERC20 token for testing purposes.
// The Test20 token allows anyone to mint any amount of tokens to any address, making
// it unsuitable for production use. The primary goal of this package is to facilitate
// testing and experimentation without any security measures or restrictions.
//
// WARNING: This token is highly insecure and should not be used in any
// production environment. It is intended solely for testing and
// educational purposes.
package test20

import "gno.land/p/demo/grc/grc20"

var (
Banker = grc20.NewBanker("Test20", "TST", 4)
Token = Banker.Token()
)

// XXX func init() { grc20reg.Register(Pub, "") } // Depends on #2516
Loading