-
Notifications
You must be signed in to change notification settings - Fork 566
fix evm parameters and block gas limit in getBlockByHeight and getBlockByHash #312
Conversation
f801170
to
cdd1322
Compare
Codecov Report
@@ Coverage Diff @@
## main #312 +/- ##
==========================================
- Coverage 47.60% 47.46% -0.14%
==========================================
Files 46 46
Lines 3151 3160 +9
==========================================
Hits 1500 1500
- Misses 1576 1585 +9
Partials 75 75
|
cdd1322
to
73c0f3a
Compare
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.
one suggestion, otherwise LGTM. Please open an issue on SDK
x/evm/keeper/state_transition.go
Outdated
// Note: we cannot use k.ctx.HeaderHash() because the headerHash it set only at begin block | ||
// so it won't be set in case of simulated context |
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.
isn't it set for checkTxState too? can you open an issue on the SDK to fix this and include it on v0.43?
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.
It is also set for checkContext.
I realised my comment might be confusing. What I want to mean is that in case of a "query" context, such as simulating a transaction through "EthCall", then the header hash won't be set.
I have rewrote the comment, let me know if its clear now
fcb671c
to
9dea9e2
Compare
9dea9e2
to
f2b707e
Compare
Closes: #302
Description
For contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)