Skip to content

Commit

Permalink
fix: sample AccAddressAndKeyPair duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
red-0ne committed Feb 21, 2025
1 parent bc3f493 commit eaf8031
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ k8s_resource(
"26657", # RPC
"9090", # the gRPC server address
"40004", # use with `dlv` when it's turned on in `localnet_config.yaml`
"1317", # REST
# Use with pprof like this: `go tool pprof -http=:3333 http://localhost:6050/debug/pprof/goroutine`
"6050:6060",
],
Expand Down
4 changes: 2 additions & 2 deletions localnet/poktrolld/config/app.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ query-gas-limit = "0"
rpc-max-body-bytes = 1000000
rpc-read-timeout = 10
rpc-write-timeout = 0
swagger = false
swagger = true

[grpc]
address = "localhost:9090"
address = "0.0.0.0:9090"
enable = true
max-recv-msg-size = "10485760"
max-send-msg-size = "2147483647"
Expand Down
8 changes: 0 additions & 8 deletions testutil/sample/sample.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ func AccAddressAndKeyPair() (string, cryptotypes.PubKey, cryptotypes.PrivKey) {
return cosmostypes.AccAddress(addr).String(), pk, sk
}

// AccAddressAndKeyPair returns a sample account address its public key and private key
func AccAddressAndKeyPair() (string, cryptotypes.PubKey, cryptotypes.PrivKey) {
sk := secp256k1.GenPrivKey()
pk := sk.PubKey()
addr := pk.Address()
return cosmostypes.AccAddress(addr).String(), pk, sk
}

// AccAddress returns a sample account address
func AccAddress() string {
addr, _ := AccAddressAndPubKey()
Expand Down

0 comments on commit eaf8031

Please sign in to comment.