File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,8 @@ func (d *DebugAPI) TraceCall(
361361 return tracer .GetResult ()
362362}
363363
364- // FlowHeight returns the Flow height for the given EVM block.
364+ // FlowHeight returns the Flow height for the given EVM block specified either by EVM
365+ // block height or EVM block hash.
365366func (d * DebugAPI ) FlowHeight (
366367 _ context.Context ,
367368 blockNrOrHash rpc.BlockNumberOrHash ,
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ func TestWeb3_E2E(t *testing.T) {
3636 runWeb3Test (t , "debug_traces_test" )
3737 })
3838
39- t .Run ("test transaction traces " , func (t * testing.T ) {
39+ t .Run ("test debug utils " , func (t * testing.T ) {
4040 runWeb3Test (t , "debug_util_test" )
4141 })
4242
Original file line number Diff line number Diff line change 11const { assert } = require ( 'chai' )
22const helpers = require ( './helpers' )
3+ const conf = require ( './config' )
34
45it ( 'should retrieve flow height' , async ( ) => {
5- response = await helpers . callRPCMethod (
6+ let response = await helpers . callRPCMethod (
67 'debug_flowHeight' ,
78 [ 'latest' ]
89 )
910 assert . equal ( response . status , 200 )
1011 assert . isDefined ( response . body )
1112
1213 let height = response . body . result
13- assert . isTrue ( height > 0 )
14+ assert . equal ( height , conf . startBlockHeight )
1415} )
You can’t perform that action at this time.
0 commit comments