Преглед на файлове

internal/web3ext: fix debug.traceBlockFromFile wrapper (#14774)

As stated in the documentation, this method should be called traceBlockFromFile
and not traceBlockByFile. Previously this would result in a 'The method ... does
not exist/is not available' error.
Daniel Sloof преди 8 години
родител
ревизия
0958770625
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      internal/web3ext/web3ext.go

+ 2 - 2
internal/web3ext/web3ext.go

@@ -208,8 +208,8 @@ web3._extend({
 			params: 1
 		}),
 		new web3._extend.Method({
-			name: 'traceBlockByFile',
-			call: 'debug_traceBlockByFile',
+			name: 'traceBlockFromFile',
+			call: 'debug_traceBlockFromFile',
 			params: 1
 		}),
 		new web3._extend.Method({