-
Notifications
You must be signed in to change notification settings - Fork 153
feat: redesign bank precompile for erc20 support #804
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
base: main
Are you sure you want to change the base?
Conversation
Closes: cosmos#505 Supersedes: cosmos#517 Use go-abi to simplify implementation. update erc20 source
| for denom, amount := range m { | ||
| coin := sdk.NewCoin(denom, sdkmath.NewInt(amount)) | ||
| if cb(coin) { | ||
| break | ||
| } | ||
| } |
Check warning
Code scanning / CodeQL
Iteration over map Warning
| for denom, amount := range k.supplies { | ||
| coin := sdk.NewCoin(denom, sdkmath.NewInt(amount)) | ||
| if cb(coin) { | ||
| break | ||
| } | ||
| } |
Check warning
Code scanning / CodeQL
Iteration over map Warning
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #804 +/- ##
==========================================
+ Coverage 65.43% 65.64% +0.20%
==========================================
Files 318 323 +5
Lines 22244 22492 +248
==========================================
+ Hits 14556 14765 +209
- Misses 6521 6536 +15
- Partials 1167 1191 +24
🚀 New features to boost your workflow:
|
|
looks like we might need a |
|
Anything we need to do to get our code coverage up? |
I removed generated abi files from the coverage, the report looks good now. |
| Precompile: cmn.Precompile{ | ||
| KvGasConfig: storetypes.GasConfig{}, | ||
| TransientKVGasConfig: storetypes.GasConfig{}, | ||
| ContractAddress: common.HexToAddress(evmtypes.BankPrecompileAddress), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks need to set BalanceHandlerFactory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, it explicitly reject to handle native token in transferFrom method.
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days-before-close if no further activity occurs. |
99809d3 to
4d6b580
Compare
Description
Closes: #505
Supersedes: #517
Use go-abi to simplify implementation, see: #789
Closes: #XXXX
Author Checklist
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.
I have...
mainbranch