-
Notifications
You must be signed in to change notification settings - Fork 179
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
Use correct EVM address in tests and transient networks #5255
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #5255 +/- ##
==========================================
+ Coverage 55.61% 55.66% +0.04%
==========================================
Files 995 995
Lines 95485 95510 +25
==========================================
+ Hits 53107 53161 +54
+ Misses 38403 38378 -25
+ Partials 3975 3971 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
nice! LGTM
fvm/evm/evm.go
Outdated
@@ -12,39 +12,48 @@ import ( | |||
"github.com/onflow/flow-go/model/flow" | |||
) | |||
|
|||
func RootAccountAddress(chainID flow.ChainID) (flow.Address, error) { | |||
func ContractAccountAddress(chainID flow.ChainID) (flow.Address, error) { | |||
sc := systemcontracts.SystemContractsForChain(chainID) | |||
return sc.EVM.Address, nil |
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.
Maybe also rename EVM
to EVMContract
, just like the EVM storage account is called EVMStorage
ref: #4964, #4959
What was done in this PR
The EVM contract account will be the service account on all networks.
The EVM state storage account will be the fifth account on all transient networks. On non-transient networks an Account still has to be picked to serve that purpose.