Skip to content

Commit

Permalink
Merge pull request #83 from oasisprotocol/matevz/fix/burn
Browse files Browse the repository at this point in the history
fix(burn): Fix burn parameters
  • Loading branch information
matevz committed May 30, 2023
2 parents 6a49b35 + 8697ea5 commit 6079815
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmd/account/burn.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
var burnCmd = &cobra.Command{
Use: "burn <amount>",
Short: "Burn given amount of tokens",
Args: cobra.ExactArgs(2),
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
cfg := cliConfig.Global()
npa := common.GetNPASelection(cfg)
Expand All @@ -38,10 +38,6 @@ var burnCmd = &cobra.Command{

acc := common.LoadAccount(cfg, npa.AccountName)

if npa.ParaTime != nil {
cobra.CheckErr("burns within ParaTimes are not supported; use --no-paratime")
}

// Consensus layer transfer.
amount, err := helpers.ParseConsensusDenomination(npa.Network, amountStr)
cobra.CheckErr(err)
Expand Down

0 comments on commit 6079815

Please sign in to comment.