evm: set chainID in context during BeginBlock (#130)

This commit is contained in:
Thomas Nguy 2021-06-15 20:53:19 +09:00 committed by GitHub
parent d4f742cb6d
commit d3c5df9dda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,7 @@ import (
func (k *Keeper) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) {
defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), telemetry.MetricKeyBeginBlocker)
k.WithContext(ctx)
k.WithChainID(ctx)
k.headerHash = common.BytesToHash(req.Hash)
}