-
Notifications
You must be signed in to change notification settings - Fork 858
[giga][testing] add command to fetch ethereum states #2645
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
|
The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2645 +/- ##
==========================================
+ Coverage 38.48% 47.54% +9.05%
==========================================
Files 674 350 -324
Lines 51042 34231 -16811
==========================================
- Hits 19643 16274 -3369
+ Misses 29573 16406 -13167
+ Partials 1826 1551 -275
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
| for contractAddr, stateMap := range reads { | ||
| stateOutput := make(map[string]string) | ||
| for stateKey, stateValue := range stateMap { | ||
| stateOutput[stateKey.Hex()] = stateValue.Hex() | ||
| } | ||
| outputMap[contractAddr.Hex()] = stateOutput | ||
| } |
Check warning
Code scanning / CodeQL
Iteration over map Warning test
| for stateKey, stateValue := range stateMap { | ||
| stateOutput[stateKey.Hex()] = stateValue.Hex() | ||
| } |
Check warning
Code scanning / CodeQL
Iteration over map Warning test
| for address, reads := range allReads { | ||
| for read := range reads { | ||
| reads[read] = GetState(url, address, read, height) | ||
| } | ||
| } |
Check warning
Code scanning / CodeQL
Iteration over map Warning test
| for read := range reads { | ||
| reads[read] = GetState(url, address, read, height) | ||
| } |
Check warning
Code scanning / CodeQL
Iteration over map Warning test
| for k, v := range v { | ||
| kvs = append(kvs, fmt.Sprintf("\"%s\":%s", k, formatParam(v))) | ||
| } |
Check warning
Code scanning / CodeQL
Iteration over map Warning test
| for k, v := range v { | ||
| kvs = append(kvs, fmt.Sprintf("\"%s\":%s", k, formatParam(v))) | ||
| } |
Check warning
Code scanning / CodeQL
Iteration over map Warning test
Describe your changes and provide context
usage:
seid testutils tx-reads --url $URL --tx-hash $TXresponse:
The results indicate all states accessed by a particular transaction, which can be used to mock state in tests
Testing performed to validate your change
n/a