mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-06 02:52:19 +00:00
d0322ab840
* Added eth_getTransactionCount to the devnet tool * Fixed lint errors
22 lines
436 B
Go
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)
|
|
}
|
|
},
|
|
}
|