Skip to content

Commit

Permalink
correct emit event filed (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgao001 authored Sep 6, 2023
1 parent e903864 commit 9fd4c68
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion proto/greenfield/sp/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ message MsgCreateStorageProvider {

// creator is the msg signer
string creator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// description defines the description terms for the validator.
// description defines the description terms for the storage provider.
Description description = 2 [(gogoproto.nullable) = false];
// sp_address defines the address of the sp's operator; It also is the unqiue index key of sp.
string sp_address = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"];
Expand Down
8 changes: 4 additions & 4 deletions x/sp/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func CmdCreateStorageProvider() *cobra.Command {
Long: `Submit a create new storage provider proposal by submitting a JSON file with the new storage provider details, once the proposal has been passed, create a new storage provider initialized with a self deposit.`,
Example: strings.TrimSpace(
fmt.Sprintf(`
$ %s tx sp create-storage-provider path/to/create_validator_proposal.json --from keyname
$ %s tx sp create-storage-provider path/to/create_sp_proposal.json --from keyname
Where create_storagep_provider.json contains:
{
"messages": [
Expand Down Expand Up @@ -421,9 +421,9 @@ func CreateStorageProviderMsgFlagSet(ipDefault string) (fs *flag.FlagSet, defaul
fsCreateStorageProvider.String(FlagNodeID, "", "The node's NodeID")

fsCreateStorageProvider.String(FlagMoniker, "", "The sp's name")
fsCreateStorageProvider.String(FlagWebsite, "", "The validator's (optional) website")
fsCreateStorageProvider.String(FlagSecurityContact, "", "The validator's (optional) security contact email")
fsCreateStorageProvider.String(FlagDetails, "", "The validator's (optional) details")
fsCreateStorageProvider.String(FlagWebsite, "", "The storage provider's (optional) website")
fsCreateStorageProvider.String(FlagSecurityContact, "", "The storage provider's (optional) security contact email")
fsCreateStorageProvider.String(FlagDetails, "", "The storage provider's (optional) details")
fsCreateStorageProvider.String(FlagIdentity, "", "The (optional) identity signature (ex. UPort or Keybase)")

fsCreateStorageProvider.String(FlagCreator, "", "The creator address of storage provider")
Expand Down
2 changes: 1 addition & 1 deletion x/sp/types/tx.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion x/sp/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func NewDescription(moniker, identity, website, details string) Description {
}
}

// EnsureLength ensures the length of a validator's description.
// EnsureLength ensures the length of a storage provider's description.
func (d *Description) EnsureLength() error {
if len(d.Moniker) > MaxMonikerLength {
return errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid moniker length; got: %d, max: %d", len(d.Moniker), MaxMonikerLength)
Expand Down
2 changes: 1 addition & 1 deletion x/storage/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -2020,7 +2020,7 @@ func (k Keeper) CompleteMigrateBucket(ctx sdk.Context, operator sdk.AccAddress,
BucketName: bucketName,
BucketId: bucketInfo.Id,
GlobalVirtualGroupFamilyId: gvgFamilyID,
SrcPrimarySpId: srcGvgFamily.Id,
SrcPrimarySpId: srcGvgFamily.PrimarySpId,
}); err != nil {
return err
}
Expand Down

0 comments on commit 9fd4c68

Please sign in to comment.