add contract migration check on all calls#1547
Conversation
| var missingContractErr error | ||
| if !slices.Contains(foundAddresses, addr) { | ||
| builder := strings.Builder{} | ||
| builder.WriteString("some contracts do not appear to have been a part of any emulated migrations yet, please ensure that it has been staged & wait for the next emulated migration (last migration report was at ") |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
@ianthpun has this been manually tested? The screenshot shows the code error output? That seems large and unnecessary. Can we keep everything but the error output and maybe say something like "run blah command" to see the errors? |
|
Looks like @jribbink already left a similar comment as I just did so plus one. |
| " - Account: %s\n"+ | ||
| " - Contract: %s\n"+ | ||
| " - Error: %s\n", | ||
| contract.ContractName, |
There was a problem hiding this comment.
Also, this is a lot to show. Is it better just to say like "3 contracts with errors found since last migration," and then a way to see more?
There was a problem hiding this comment.
ya i agree i think it's quite a bit. Maybe we can list the contracts and then just like to the migration data?
There was a problem hiding this comment.
What does it look like if there are multiple that fail? Is there any sort of separation before they repeat?


Closes #1543
Description
confirmed working here with a manual test
For contributor use:
masterbranchFiles changedin the Github PR explorer