Do not emit Approval event when calling transferFrom by Amxx · Pull Request #4370 · OpenZeppelin/openzeppelin-contracts (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation14 Commits8 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

Amxx

Fixes LIB-876

PR Checklist

@Amxx

@changeset-bot

@Amxx

ernestognw

const expectedSupply = initialSupply.add(amount);
expect(await this.token.totalSupply()).to.be.bignumber.equal(expectedSupply);
});
const describeBurn = function (description, amount) {

Choose a reason for hiding this comment

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

For consistency, I'd suggest:

const describeBurn = function (description, amount) {
function describeBurn (description, amount) {

Non-blocking.

Choose a reason for hiding this comment

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

That is not related to this PR. Maybe we can put that in a dedicated "cleanup/consistency" PR?
Otherwize we can do it here, I don't have a strong opinion.

Choose a reason for hiding this comment

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

This wasn't introduced in this PR so if we want to change it let's do it separately.

Choose a reason for hiding this comment

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

Agree in doing it in another PR

@ernestognw

@Amxx @ernestognw

Co-authored-by: Ernesto García ernestognw@gmail.com

frangio

Choose a reason for hiding this comment

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

Looks good. Minor comment.

Amxx and others added 3 commits

June 21, 2023 09:42

@Amxx @frangio

Co-authored-by: Francisco fg@frang.io

@Amxx

@Amxx

frangio

frangio previously approved these changes Jun 21, 2023

ernestognw

Choose a reason for hiding this comment

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

Sorry for just bringing it up but we talked before about registering the changes needed to migrate to 5.0 and I think this should go into this list.

Did we agree to put it in the CHANGELOG?

@Amxx @ernestognw

Co-authored-by: Ernesto García ernestognw@gmail.com

@frangio

If there are any breaking changes that users need to adapt in their code when upgrading, we should put them in a section "How to Upgrade from 4.x" in the changelog.

In this case though users don't need to do anything, so I don't think there is anything we need to mention in that section, beyond what we should mention in the changeset.

@frangio

frangio

ernestognw

@Amxx Amxx deleted the refactor/ERC20/dontEmitApprovalOnTransferFrom branch

June 22, 2023 22:14

ernestognw added a commit to ernestognw/openzeppelin-contracts that referenced this pull request

Jun 29, 2023

Co-authored-by: Ernesto García ernestognw@gmail.com Co-authored-by: Francisco fg@frang.io

ernestognw added a commit to ernestognw/openzeppelin-contracts that referenced this pull request

Jul 3, 2023

Co-authored-by: Ernesto García ernestognw@gmail.com Co-authored-by: Francisco fg@frang.io

This was referenced

Jun 15, 2024

This was referenced

Jul 9, 2024

This was referenced

Sep 10, 2024

This was referenced

Sep 12, 2024

This was referenced

Nov 8, 2024

This was referenced

Nov 9, 2024