Skip to content

Comments

erc20 unshielded#1

Merged
andrew-fleming merged 17 commits intomainfrom
erc20-unshielded
Apr 8, 2025
Merged

erc20 unshielded#1
andrew-fleming merged 17 commits intomainfrom
erc20-unshielded

Conversation

@andrew-fleming
Copy link
Contributor

@andrew-fleming andrew-fleming commented Mar 24, 2025

TMP - This PR is still a draft and some features like the approval mechanism need work. This is mostly due to how nested maps need to be initialized. We also need to have a way to change the caller context in tests so we can test that Alice can call foo but not Bob

Resolves #4.

Copy link
Member

@0xisk 0xisk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @andrew-fleming generally LGTM! Just left some comments & questions.

test(contracts): more tests on ERC20 unshieleded.
Copy link
Member

@0xisk 0xisk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! thank you @andrew-fleming!

Copy link
Contributor

@emnul emnul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gg

@andrew-fleming andrew-fleming marked this pull request as ready for review April 8, 2025 01:28
@andrew-fleming andrew-fleming merged commit 532a4be into main Apr 8, 2025
@andrew-fleming andrew-fleming deleted the erc20-unshielded branch April 8, 2025 19:48
emnul pushed a commit that referenced this pull request Jun 26, 2025
* test: adding more tests in ERC20 contract

* catch mint overflow to output a more readable error msg

* add overflow tests

* fix test assertions

* add initial module doc

* remove contract dir

* re-add erc20

* use utils zero address check in erc20

* fix sim export

* remove file

* remove unused type

* add line

* set metadata as sealed

* add initializer comment

* add return comment to initializer

---------

Co-authored-by: 0xisk <iskander.andrews@openzeppelin.com>
emnul pushed a commit that referenced this pull request Jun 26, 2025
* test: adding more tests in ERC20 contract

* catch mint overflow to output a more readable error msg

* add overflow tests

* fix test assertions

* add initial module doc

* remove contract dir

* re-add erc20

* use utils zero address check in erc20

* fix sim export

* remove file

* remove unused type

* add line

* set metadata as sealed

* add initializer comment

* add return comment to initializer

---------

Co-authored-by: 0xisk <iskander.andrews@openzeppelin.com>
emnul pushed a commit that referenced this pull request Jun 26, 2025
* test: adding more tests in ERC20 contract

* catch mint overflow to output a more readable error msg

* add overflow tests

* fix test assertions

* add initial module doc

* remove contract dir

* re-add erc20

* use utils zero address check in erc20

* fix sim export

* remove file

* remove unused type

* add line

* set metadata as sealed

* add initializer comment

* add return comment to initializer

---------

Co-authored-by: 0xisk <iskander.andrews@openzeppelin.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add erc20 unshielded

3 participants