xuperchain / xuperchain

A highly flexible blockchain architecture with great transaction performance.

Home Page:https://xuper.baidu.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xchain-cli utxo 指令操作合约账号不符合预期

zhugelianglongming opened this issue · comments

commented

Brief of the issue

使用 xchain-cli 对合约账号的 UTXO 进行 merge|split 始终报错

Your environment

  • XuperChain: v5.3.0
  • OS: MacOS 12.0.1 (21A559)
  • Go: go1.17.2 darwin/amd64
  • gcc: 4.2.1
gcc
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: x86_64-apple-darwin21.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Repo steps

  1. create a contract account XC1111111111111111@xuper
  2. transfer to the XC1111111111111111@xuper more than twice
  3. (optional) list and check UTXO
    bin/xchain-cli utxo list -N 10 -A XC1111111111111111@xuper
  4. merge or split UTXO
bin/xchain-cli utxo merge -A XC1111111111111111@xuper -P data
bin/xchain-cli utxo split -N 2 -A XC1111111111111111@xuper

Expected behaviours

  • no error
  • option usage
    • -A <ak>
    • -A <contract account> -P <auth accounts path>

What actually happened

  • split: parse account error
  • merge: genAuthRequire error
    36a2a38861b5962329974f6ddd1200e2

Additional information

None yet