-
Notifications
You must be signed in to change notification settings - Fork 9
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
Multiple bug fixes: NDEV-2330, NDEV-2343, NDEV-2344, NDEV-2345 #220
Conversation
ec45940
to
c308a36
Compare
06dff5e
to
641e877
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.
LGTM.
8708a81
641e877
to
8708a81
Compare
Dapps reportCost report for "Uniswap V2" dApp
Cost report for "Curve" dApp
Cost report for "Aave" dApp
Cost report for "Robonomics" dApp
Cost report for "Yearn" dApp
Cost report for "Compound-Finance" dApp
Cost report for "Uniswap V3" dApp
Cost report for "Curve-Factory" dApp
Cost report for "Saddle Finance" dApp
|
NDEV-2330: Fix off-by-one error in get_account_at(slot, tx_index)
When the call
get_account_at(slot, tx_index_in_block=Some(index))
does not find an account update in theslot
withindex <= tx_index_in_block
, it should look inslot - 1
next, instead ofslot
.An integration test for this bug fix should:
eth_getBalance
for the recipient account at block number before the tx block;eth_getBalance
for the recipient account at block number at the tx block;NDEV-2343: Pass gas_price from tracer to neon-api
The
gas_price
for an executed transaction needs to be passed from tracer to neon-api for these APIs:eth_call
,debug_traceCall
,debug_traceTransaction
andtrace_replayTransaction
(from NDEV-2301: Implement trace_replayTransaction stateDiff tracer #225).The
gas_price
value affects:"GASPRICE"
opcode;from
account of a transaction), because thetx_fee = gas_price * consumed_gas
.NDEV-2344: Remove unused debug methods code
Removed unused code from previous debug methods implementation.
NDEV-2345: Add account overrides logic to code_hash
Account overrides logic was applied only to
code
retrieval method, but not also tocode_hash
method.