mirror of
https://github.com/colinear-labs/chain.git
synced 2026-03-05 05:44:26 -08:00
Initialized with Ignite CLI
This commit is contained in:
13
testutil/sample/sample.go
Normal file
13
testutil/sample/sample.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package sample
|
||||
|
||||
import (
|
||||
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
)
|
||||
|
||||
// AccAddress returns a sample account address
|
||||
func AccAddress() string {
|
||||
pk := ed25519.GenPrivKey().PubKey()
|
||||
addr := pk.Address()
|
||||
return sdk.AccAddress(addr).String()
|
||||
}
|
||||
Reference in New Issue
Block a user