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

CLI doesn't allow updating sequencer reward addr #1209

Open
danwt opened this issue Dec 24, 2024 · 0 comments
Open

CLI doesn't allow updating sequencer reward addr #1209

danwt opened this issue Dec 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@danwt
Copy link
Contributor

danwt commented Dec 24, 2024

Roller version

💈 Roller version 1.11.0-alpha-rc1💈 Git commit: 1a34718 Build time: 2024-12-20T13:01:57Z

Rollpp type (EVM/WASM) and version

wasm

OS

ubuntu 22

Processor Architecture

aarch64

Others

No response

Steps to reproduce it

Create rollapp + sequencer
Update reward address

Expected result

Update address successfully

Actual result

daniel_dymension_xyz@dym-dev-team-daniel:~/.roller$ roller rollapp sequencer rewards
 INFO  checking whether the validator key is present in the keyring
 INFO  importing the validator key
Error: unknown flag: --keyring-backend
Usage:
  rollapp-wasm tx sequencer [flags]
  rollapp-wasm tx sequencer [command]

Available Commands:
  update-reward-address       Update a sequencer reward address.
  update-whitelisted-relayers Update a sequencer whitelisted relayer list.

Flags:
  -h, --help   help for sequencer

Global Flags:
      --chain-id string     The network chain ID
      --home string         directory for config and data (default "/home/daniel_dymension_xyz/.rollapp-wasm")
      --log_format string   The logging format (json|plain) (default "plain")
      --log_level string    The logging level (trace|debug|info|warn|error|fatal|panic) (default "info")
      --trace               print out full stack trace on errors

Use "rollapp-wasm tx sequencer [command] --help" for more information about a command.

  ERROR   failed to import sequencer key command finished with error: exit status 1

Moreover, if you continue anway, panics

Sequencer reward address (press enter to create a new wallet): mik1h5a6kc30r622eh6lr0xrq7uds9crdc8hugwkta
 INFO  mik1h5a6kc30r622eh6lr0xrq7uds9crdc8hugwkta (BD3BAB622F1E94ACDF5F1BCC307B8D817036E0F7) is a valid address
  ERROR   failed to retrieve RollApp sequencers:  json: cannot unmarshal string into Go struct field Info.sequencers.tokens of type types.Coins
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x110798c]

goroutine 1 [running]:
github.com/dymensionxyz/roller/cmd/rollapp/sequencer.Cmd.Cmd.func1(0x4000b6f508, {0x33b69e0, 0x0, 0x197b8ec?})
        /go/src/github.com/dymensionxyz/roller/cmd/rollapp/sequencer/rewards/rewards.go:158 +0x9bc
github.com/spf13/cobra.(*Command).execute(0x4000b6f508, {0x33b69e0, 0x0, 0x0})
        /root/go/pkg/mod/github.com/spf13/[email protected]/command.go:987 +0x81c
github.com/spf13/cobra.(*Command).ExecuteC(0x3365e40)
        /root/go/pkg/mod/github.com/spf13/[email protected]/command.go:1115 +0x344
github.com/spf13/cobra.(*Command).Execute(...)
        /root/go/pkg/mod/github.com/spf13/[email protected]/command.go:1039
github.com/dymensionxyz/roller/cmd.Execute()
        /go/src/github.com/dymensionxyz/roller/cmd/root.go:29 +0x24
main.main()
        /go/src/github.com/dymensionxyz/roller/main.go:6 +0x1c
daniel_dymension_xyz@dym-dev-team-daniel:~/.roller$

Log Files

No response

Notes

No response

@danwt danwt added the bug Something isn't working label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant