erigon-pulse/cmd/devnettest/commands/requests.go
leonardchinonso d0322ab840
Added eth_getTransactionCount to the devnet tool (#3734)
* Added eth_getTransactionCount to the devnet tool

* Fixed lint errors
2022-03-18 11:57:23 +00:00

22 lines
436 B
Go

package commands
import (
"fmt"
"github.com/ledgerwatch/erigon/cmd/devnettest/requests"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(mockRequestCmd)
}
var mockRequestCmd = &cobra.Command{
Use: "mock",
Short: "Mocks a request on the devnet",
Run: func(cmd *cobra.Command, args []string) {
if err := requests.MockGetRequest(reqId); err != nil {
fmt.Printf("error mocking get request: %v\n", err)
}
},
}