Skip to content

fix(evm): catch the evm module up with the tracked modules - #2228

Open
atharrva01 wants to merge 2 commits into
LFDT-Panurus:feature/evm-network-driverfrom
atharrva01:evm-lint-containedctx
Open

fix(evm): catch the evm module up with the tracked modules#2228
atharrva01 wants to merge 2 commits into
LFDT-Panurus:feature/evm-network-driverfrom
atharrva01:evm-lint-containedctx

Conversation

@atharrva01

Copy link
Copy Markdown
Contributor

The evm driver is its own Go module under x/, so changes that sweep the tracked modules do not reach
it. Two have been missed and the branch has been red on both since:

Neither of those two fields can be dropped, so they get a waiver with the reason next to it.
Ledger.ctx exists because driver.GetStateFnc passes no context to GetState, and
fakeContext.ctx because it implements view.Context, whose Context() method has to return one.

make lint and go test ./... are both clean on the module afterwards.

The v0.17.0 upgrade updated the tracked modules and missed this one, so
nothing under x/token/services/network/evm builds until go.mod is tidy.

Signed-off-by: atharrva01 <atharvaborade568@gmail.com>
LFDT-Panurus#2180 enabled containedctx and fixed the ttx occurrence. The evm module is a
separate Go module and was not linted in that pass, so make lint has been
failing on it since.

Neither field can be dropped. Ledger.ctx exists because driver.GetStateFnc
passes no context to GetState, and fakeContext.ctx exists because it
implements view.Context, whose Context() method has to return one.

Signed-off-by: atharrva01 <atharvaborade568@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant