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

fees: limit address derivation to 20 iterations at registration #603

Merged
merged 1 commit into from
May 12, 2022

Conversation

loredanacirstea
Copy link
Contributor

Description

We already charge gas for address derivation. But I am also adding the second limitation suggested here #436 (review)

we should limit the number of elements in the nonces field (say to 20 elements max)

Closes: #XXX


All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

PR review checkboxes:

I have...

  • added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • included the correct type prefix in the PR title
  • targeted the correct branch (see PR Targeting)
  • provided a link in the PR description to the relevant issue or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all required CI checks have passed

Code maintenance:

I have...

  • written unit and integration tests
  • added relevant godoc and code comments.
  • updated relevant documentation (docs/) or specification (x/<module>/spec/)

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • confirmed that this PR does not change production code

@codecov
Copy link

codecov bot commented May 11, 2022

Codecov Report

Merging #603 (ae9912a) into main (ed349a8) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #603   +/-   ##
=======================================
  Coverage   83.32%   83.32%           
=======================================
  Files         116      116           
  Lines        6373     6376    +3     
=======================================
+ Hits         5310     5313    +3     
  Misses        935      935           
  Partials      128      128           
Impacted Files Coverage Δ
x/erc20/keeper/mint.go 100.00% <100.00%> (ø)
x/fees/types/msg.go 100.00% <100.00%> (ø)

@fedekunze fedekunze merged commit 9bf1ae3 into main May 12, 2022
@fedekunze fedekunze deleted the loredana/fees-limit-derivation-count branch May 12, 2022 08:55
loredanacirstea added a commit that referenced this pull request May 14, 2022
* main:
  Correct inflation.proto typo (#608)
  change algolia search key (#607)
  Changing erroneous epoch skips to daily instead of weekly (#554)
  fix: remove dup set claims record + CLI update (#605)
  build(deps): bump github.com/spf13/cast from 1.4.1 to 1.5.0 (#604)
  imp: fees test coverage (#586)
  fees: limit address derivation to 20 iterations at registration (#603)
loredanacirstea added a commit to loredanacirstea/evmos that referenced this pull request May 16, 2022
* main:
  Correct inflation.proto typo (evmos#608)
  change algolia search key (evmos#607)
  Changing erroneous epoch skips to daily instead of weekly (evmos#554)
  fix: remove dup set claims record + CLI update (evmos#605)
  build(deps): bump github.com/spf13/cast from 1.4.1 to 1.5.0 (evmos#604)
  imp: fees test coverage (evmos#586)
  fees: limit address derivation to 20 iterations at registration (evmos#603)
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.

None yet

2 participants