Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

Commit c4fd592

Browse files
committed
cleanup
1 parent 3fba074 commit c4fd592

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Fork of [ethrpc](https://github.com/onrik/ethrpc) with additional [Flashbots RPC
1010
## Usage
1111

1212
```go
13-
rpc := flashbotsrpc.NewFlashbotsRPC("https://relay.flashbots.net")
13+
rpc := flashbotsrpc.New("https://relay.flashbots.net")
1414

1515
// Creating a new private key here for testing; you probably would want to use an existing one
1616
privateKey, _ := crypto.GenerateKey()

examples/simulateblock/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func main() {
6060
return
6161
}
6262

63-
rpc := flashbotsrpc.NewFlashbotsRPC(*mevGethUriPtr)
63+
rpc := flashbotsrpc.New(*mevGethUriPtr)
6464
rpc.Debug = *debugPtr
6565

6666
privateKey, _ := crypto.GenerateKey()

examples/userstats/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
var privateKey, _ = crypto.GenerateKey() // creating a new private key for testing. you probably want to use an existing key.
1111

1212
func main() {
13-
rpc := flashbotsrpc.NewFlashbotsRPC("https://relay.flashbots.net")
13+
rpc := flashbotsrpc.New("https://relay.flashbots.net")
1414

1515
// Query relay for user stats
1616
result, err := rpc.FlashbotsGetUserStats(privateKey, 13281018)

0 commit comments

Comments
 (0)