aeternity / aepp-sdk-go

Golang SDK to interact with the Æternity blockchain
ISC License
18 stars 10 forks source link

CLI chain top panics upon reflection #83

Closed randomshinichi closed 5 years ago

randomshinichi commented 5 years ago
shinichi@ilya:~/source/go/src/github.com/aeternity/aepp-sdk-test aecli-go -u http://localhost:3013 chain top
<KeyBlockOrMicroBlockHeader>
  <KeyBlock>
    Beneficiary_____________________________________ ak_2a1j2Mk9YSmC1gioUq4PWRm3bsv887MbuRVwyv4KaUGoR1eiKi
    Hash____________________________________________ kh_VpJXBUVSR6RmdybPQFogTbQ3pES74jtwjYZsnPJ5LbykwP3xz
    Height__________________________________________ 84
    Info____________________________________________ cb_AAAAAfy4hFE=
    Miner___________________________________________ ak_25AgeXQtB3eMwq9b3KFsuwdiz5ia6fYa9g7S9RVrNUxkfszvpA
    Nonce___________________________________________ 15657475342717695945
    PrevHash________________________________________ kh_pDh3FsTK7ifvV8teDs3oNk4YxruEVLQGspgHvkY4mTwCpNKjy
    PrevKeyHash_____________________________________ kh_pDh3FsTK7ifvV8teDs3oNk4YxruEVLQGspgHvkY4mTwCpNKjy
    StateHash_______________________________________ bs_3sa2GSmv8RGaZfcnaQmjyjFshoBrs68VuUf874RzqCNob1huX
    Target__________________________________________ 540174265
panic: reflect: call of reflect.Value.Int on uint64 Value

goroutine 1 [running]:
reflect.Value.Int(...)
        /usr/lib/go/src/reflect/value.go:962
github.com/aeternity/aepp-sdk-go/aeternity.printIf.func1(0x0, 0x0, 0x97ce2b, 0x4, 0x9de600, 0xc0000aa360, 0x18b, 0x2)
        /home/shinichi/source/go/src/github.com/aeternity/aepp-sdk-go/aeternity/terminal.go:90 +0xba1
github.com/aeternity/aepp-sdk-go/aeternity.printIf.func1(0x0, 0x0, 0x991b78, 0x8, 0xa76140, 0xc0000aa2c0, 0x199, 0x1)
        /home/shinichi/source/go/src/github.com/aeternity/aepp-sdk-go/aeternity/terminal.go:78 +0x3fc
github.com/aeternity/aepp-sdk-go/aeternity.printIf.func1(0x0, 0x0, 0x991b78, 0x8, 0xa6ca40, 0xc0004d0000, 0x196, 0x1)
        /home/shinichi/source/go/src/github.com/aeternity/aepp-sdk-go/aeternity/terminal.go:66 +0xab5
github.com/aeternity/aepp-sdk-go/aeternity.printIf.func1(0xa92a34, 0x5, 0x0, 0x0, 0xa1cda0, 0xc0004d0000, 0x199, 0x0)
        /home/shinichi/source/go/src/github.com/aeternity/aepp-sdk-go/aeternity/terminal.go:78 +0x3fc
github.com/aeternity/aepp-sdk-go/aeternity.printIf.func1(0xa92a34, 0x5, 0x0, 0x0, 0xa26880, 0xc0004d0000, 0x16, 0x0)
        /home/shinichi/source/go/src/github.com/aeternity/aepp-sdk-go/aeternity/terminal.go:66 +0xab5
github.com/aeternity/aepp-sdk-go/aeternity.printIf(0xa92a34, 0x5, 0xa26880, 0xc0004d0000)
        /home/shinichi/source/go/src/github.com/aeternity/aepp-sdk-go/aeternity/terminal.go:97 +0x102
github.com/aeternity/aepp-sdk-go/aeternity.PrintObject(0xa92a34, 0x5, 0xa26880, 0xc0004d0000)
        /home/shinichi/source/go/src/github.com/aeternity/aepp-sdk-go/aeternity/terminal.go:140 +0x136
github.com/aeternity/aepp-sdk-go/cmd.topFunc(0xfbfd60, 0xc0004a6ae0, 0x0, 0x2, 0x0, 0x0)
        /home/shinichi/source/go/src/github.com/aeternity/aepp-sdk-go/cmd/chain.go:45 +0xa9
github.com/spf13/cobra.(*Command).execute(0xfbfd60, 0xc0004a6a80, 0x2, 0x2, 0xfbfd60, 0xc0004a6a80)
        /home/shinichi/source/go/src/github.com/spf13/cobra/command.go:762 +0x465
github.com/spf13/cobra.(*Command).ExecuteC(0xfc0e00, 0x0, 0xc000447500, 0x2c)
        /home/shinichi/source/go/src/github.com/spf13/cobra/command.go:852 +0x2ec
github.com/spf13/cobra.(*Command).Execute(...)
        /home/shinichi/source/go/src/github.com/spf13/cobra/command.go:800
github.com/aeternity/aepp-sdk-go/cmd.Execute(0xb54624, 0x6)
        /home/shinichi/source/go/src/github.com/aeternity/aepp-sdk-go/cmd/root.go:42 +0x5e
main.main()
        /home/shinichi/source/go/src/github.com/aeternity/aepp-sdk-go/main.go:29 +0x39
shinichi@ilya:~/source/go/src/github.com/aeternity/aepp-sdk-test