Skip to content

Fix NEP-141 Compliance#158

Merged
mfornet merged 4 commits into
developfrom
fix_ft_on_transfer
Jun 23, 2021
Merged

Fix NEP-141 Compliance#158
mfornet merged 4 commits into
developfrom
fix_ft_on_transfer

Conversation

@mfornet
Copy link
Copy Markdown
Contributor

@mfornet mfornet commented Jun 22, 2021

Return number as json (string) in ft_on_transfer

Return number as json (string) in ft_on_transfer
@mfornet mfornet requested review from mrLSD and sept-en June 22, 2021 17:08
@mfornet mfornet requested a review from artob as a code owner June 22, 2021 17:08
Copy link
Copy Markdown
Contributor

@sept-en sept-en left a comment

Choose a reason for hiding this comment

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

Good catch! LGTM!

Please fix tests and let's merge this ASAP.

Copy link
Copy Markdown
Member

@birchmd birchmd left a comment

Choose a reason for hiding this comment

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

As @mfornet has already mentioned, explicitly putting quotes around outputs in some places is quite error prone.

Approving for the sake of quickly addressing this bug, but we should definitely find a more robust way to handle this in the future (e.g. functions that are supposed to return json return a JsonValue and then output can be always be serialized using the same logic).

Comment thread src/fungible_token.rs Outdated
mfornet and others added 3 commits June 22, 2021 21:55
Co-authored-by: Michael Birch <michael@near.org>
@sept-en sept-en added C-bug Category: Something isn't working. P-critical Priority: critical labels Jun 23, 2021
@mfornet mfornet changed the base branch from master to develop June 23, 2021 08:29
@mfornet
Copy link
Copy Markdown
Contributor Author

mfornet commented Jun 23, 2021

Thanks for fixing tests @sept-en

@mfornet mfornet merged commit 03e170f into develop Jun 23, 2021
@mfornet mfornet deleted the fix_ft_on_transfer branch June 23, 2021 08:29
artob added a commit that referenced this pull request Jun 23, 2021
* Remove engine feature flag. (#154)
* Move tests to `src/tests`. (#155)
* Improve the `EvmErc20.sol` contract. (#156)
* Properly document endianess. (#157)
* Fix NEP-141 compliance. (#158)

Co-authored-by: Ahmed Ali <ahmed@aurora.dev>
Co-authored-by: Frank Braun <frank@aurora.dev>
Co-authored-by: Kirill <kirill@aurora.dev>
Co-authored-by: Marcelo Fornet <marcelo@aurora.dev>
Co-authored-by: Michael Birch <michael@aurora.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-bug Category: Something isn't working. P-critical Priority: critical

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants