Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typo #213

Merged
merged 1 commit into from
Apr 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions cmd/fetchd/cmd/doradomigrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const (
flagInitialHeight = "initial-height"
flagIBCMaxExpectedTimePerBlock = "max-expected-time-per-block"
flagNanonomxSupply = "nanonomx-supply"
flagUrlnSupply = "urln-supply"
flagUlrnSupply = "ulrn-supply"
flagFoundationAddress = "foundation-address"
)

Expand Down Expand Up @@ -137,18 +137,18 @@ It does the following operations:
return fmt.Errorf("failed to mint nanonomx: %w", err)
}

// Add initial urln supply
urlnStr, err := cmd.Flags().GetString(flagUrlnSupply)
// Add initial ulrn supply
ulrnStr, err := cmd.Flags().GetString(flagUlrnSupply)
if err != nil {
return fmt.Errorf("failed to read %q flag: %w", flagUrlnSupply, err)
return fmt.Errorf("failed to read %q flag: %w", flagUlrnSupply, err)
}
urlnCoin, err := sdk.ParseCoinNormalized(urlnStr)
ulrnCoin, err := sdk.ParseCoinNormalized(ulrnStr)
if err != nil {
return fmt.Errorf("failed to parse urln coin: %w", err)
return fmt.Errorf("failed to parse ulrn coin: %w", err)
}
appState, err = mintTokens(appState, clientCtx.Codec, foundationAddr, urlnCoin)
appState, err = mintTokens(appState, clientCtx.Codec, foundationAddr, ulrnCoin)
if err != nil {
return fmt.Errorf("failed to mint urln: %w", err)
return fmt.Errorf("failed to mint ulrn: %w", err)
}

// ------------ End of custom migration operations ------------
Expand Down Expand Up @@ -184,7 +184,7 @@ It does the following operations:
// see https://github.com/cosmos/ibc-go/blob/v2.0.3/modules/core/03-connection/types/connection.pb.go#L359-L362
cmd.Flags().Uint64(flagIBCMaxExpectedTimePerBlock, 30000000000, "value for ibc.connection_genesis.params.max_expected_time_per_block (nanoseconds)")
cmd.Flags().String(flagNanonomxSupply, "1000000000000000000nanonomx", "initial nanonomx supply")
cmd.Flags().String(flagUrlnSupply, "100000000000000ulrn", "initial ulrn supply")
cmd.Flags().String(flagUlrnSupply, "100000000000000ulrn", "initial ulrn supply")
cmd.Flags().String(flagFoundationAddress, "fetch1c2wlfqn6eqqknpwcr0na43m9k6hux94dp6fx4y", "fetch.ai foundation address")

return cmd
Expand Down