Initialized with Ignite CLI

This commit is contained in:
Developer Experience team at Tendermint
2022-08-25 23:51:14 +00:00
commit 4ea2b97c14
417 changed files with 298980 additions and 0 deletions

13
testutil/sample/sample.go Normal file
View 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()
}