14 lines
397 B
Go
14 lines
397 B
Go
|
package context
|
||
|
|
||
|
import (
|
||
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||
|
"github.com/pkg/errors"
|
||
|
)
|
||
|
|
||
|
// ErrInvalidAccount returns a standardized error reflecting that a given
|
||
|
// account address does not exist.
|
||
|
func ErrInvalidAccount(addr sdk.AccAddress) error {
|
||
|
return errors.Errorf(`No account with address %s was found in the state.
|
||
|
Are you sure there has been a transaction involving it?`, addr)
|
||
|
}
|