-
Notifications
You must be signed in to change notification settings - Fork 224
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
feat: blocked addrs #210
feat: blocked addrs #210
Changes from 4 commits
067badc
610ed58
91d588e
e02cb4a
33c2e48
3caa39f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ const ( | |
|
||
// function names for managed_coin | ||
FunctionNameManagedCoinInitialize = "initialize" | ||
FunctionNameManagedCoinMint = "mint" | ||
FunctionNameManagedCoinSudoMint = "sudo_mint" | ||
FunctionNameManagedCoinBurn = "burn" | ||
|
||
// function names for simple_nft | ||
|
@@ -37,10 +37,11 @@ const ( | |
FunctionNameSimpleNftBurn = "burn" | ||
|
||
// function names for coin | ||
FunctionNameCoinBalance = "balance" | ||
FunctionNameCoinRegister = "register" | ||
FunctionNameCoinTransfer = "transfer" | ||
FunctionNameCoinWhitelist = "whitelist" | ||
FunctionNameCoinBalance = "balance" | ||
FunctionNameCoinRegister = "register" | ||
FunctionNameCoinTransfer = "transfer" | ||
FunctionNameCoinSudoTransfer = "sudo_transfer" | ||
FunctionNameCoinWhitelist = "whitelist" | ||
Comment on lines
+40
to
+44
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tip Codebase Verification The context around the identified lines in both
This confirms that the renaming process has not been fully propagated across the codebase.
Please ensure that all instances of Analysis chainEnsure consistency in function naming conventions. The renaming of Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for consistent usage of renamed coin functions.
# Test: Search for old function names to ensure they are no longer used.
rg --type go $'FunctionNameCoinTransfer'
Length of output: 183 Script: #!/bin/bash
# Check the context and usage of FunctionNameCoinTransfer in the identified files.
# Extract relevant lines from x/move/types/connector.go
rg --type go --line-number 'FunctionNameCoinTransfer' x/move/types/connector.go
# Extract relevant lines from benchmark/app_test.go
rg --type go --line-number 'FunctionNameCoinTransfer' benchmark/app_test.go
Length of output: 258 Script: #!/bin/bash
# Extract surrounding lines for context in the identified files.
# Extract lines around the definition in x/move/types/connector.go
rg --type go --context 5 --line-number 'FunctionNameCoinTransfer' x/move/types/connector.go
# Extract lines around the usage in benchmark/app_test.go
rg --type go --context 5 --line-number 'FunctionNameCoinTransfer' benchmark/app_test.go
Length of output: 1039 |
||
|
||
// function names for staking | ||
FunctionNameStakingInitialize = "initialize_for_chain" | ||
|
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.
Tip
Codebase Verification
The search did not reveal any validation logic for
moduleNames
before they are used in theInitGenesis
function. This indicates a potential issue with the code.moduleNames
are properly validated before use to avoid potential errors from malformed names.Category:
Analysis chain
The
InitGenesis
function has been modified to accept amoduleNames
parameter which is sorted and used to retrieve module accounts. Ensure that themoduleNames
are properly validated before use to avoid potential errors from malformed names.Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 48
Script:
Length of output: 14551