Skip to content

Commit 0fff9b1

Browse files
renamed method
1 parent e61ac1c commit 0fff9b1

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ The EVM Gateway implements APIs according to the Ethereum specification: https:/
267267
* debug_traceBlockByNumber
268268
* debug_traceBlockByHash
269269

270-
- debug_flowBlock - returns the flow block height for the given EVM block (id or height)
270+
- debug_flowHeightByBlock - returns the flow block height for the given EVM block (id or height)
271271

272272
**Unsupported APIs**
273273
- Wallet APIs: we don't officially support wallet APIs (eth_accounts, eth_sign, eth_signTransaction, eth_sendTransaction) due to security

api/api.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ var validMethods = map[string]struct{}{
7676
"debug_traceBlockByNumber": {},
7777
"debug_traceBlockByHash": {},
7878
"debug_traceCall": {},
79+
"debug_flowHeightByBlock": {},
7980

8081
// web3 namespace
8182
"web3_clientVersion": {},

api/debug.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,9 @@ func (d *DebugAPI) TraceCall(
361361
return tracer.GetResult()
362362
}
363363

364-
// FlowHeight returns the Flow height for the given EVM block specified either by EVM
364+
// FlowHeightByBlock returns the Flow height for the given EVM block specified either by EVM
365365
// block height or EVM block hash.
366-
func (d *DebugAPI) FlowHeight(
366+
func (d *DebugAPI) FlowHeightByBlock(
367367
_ context.Context,
368368
blockNrOrHash rpc.BlockNumberOrHash,
369369
) (uint64, error) {

tests/web3js/debug_util_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const conf = require('./config')
44

55
it('should retrieve flow height', async () => {
66
let response = await helpers.callRPCMethod(
7-
'debug_flowHeight',
7+
'debug_flowHeightByBlock',
88
['latest']
99
)
1010
assert.equal(response.status, 200)

0 commit comments

Comments
 (0)