mirror of
https://github.com/colinear-labs/chain.git
synced 2026-03-05 13:04:24 -08:00
Initialized with Ignite CLI
This commit is contained in:
15
x/cosmostest/simulation/simap.go
Normal file
15
x/cosmostest/simulation/simap.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package simulation
|
||||
|
||||
import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
|
||||
)
|
||||
|
||||
// FindAccount find a specific address from an account list
|
||||
func FindAccount(accs []simtypes.Account, address string) (simtypes.Account, bool) {
|
||||
creator, err := sdk.AccAddressFromBech32(address)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return simtypes.FindAccount(accs, creator)
|
||||
}
|
||||
Reference in New Issue
Block a user