在checkCallPermission环境下调用newSideChain方法时出现Reverted错误

我部署了一个ChainManager合约,这是调用newSideChain的返回:
➜ cita_secp256k1_sha3 cita-cli rpc sendRawTransaction
–code 0x7cbad4b3000000000000000000000000000000000000000000000000000000000000000100000000000000000000000095b2685afb3fd526ede001e598c4bd9fd8a92e9f
–private-key 0xecf41556a0a93a5fe2d7d11fe72e508bfd3b805dccaa8c7958fc1282f1443617
–address 0x8bc03b68e690e1e2573b16f78a83e029c06c058f
–url http://127.0.0.1:1337
{
“id”: 4,
“jsonrpc”: “2.0”,
“result”: {
“hash”: “0xe0a2e51ebf92f2e6c688eb9a698fc6fab3b8cf891e51c612e29f51059d9aec39”,
“status”: “OK”
}
}

这是查看Receipt后的返回:
➜ cita_secp256k1_sha3 cita-cli rpc getTransactionReceipt --hash 0xe0a2e51ebf92f2e6c688eb9a698fc6fab3b8cf891e51c612e29f51059d9aec39
{
“id”: 1,
“jsonrpc”: “2.0”,
“result”: {
“blockHash”: “0xce14f26573c983628996f51a28b8305dda5edbda4c3fc55fce38817e6bc020fb”,
“blockNumber”: “0xaa”,
“contractAddress”: null,
“cumulativeQuotaUsed”: “0x5475”,
“errorMessage”: “Reverted.”,
“logs”: [
],
“logsBloom”: “0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000”,
“quotaUsed”: “0x5475”,
“root”: null,
“transactionHash”: “0xe0a2e51ebf92f2e6c688eb9a698fc6fab3b8cf891e51c612e29f51059d9aec39”,
“transactionIndex”: “0x0”
}
}

是因为newSideChain中address[]类型的参数错误导致的原因吗?如果是这个原因的话,请问正确的输入应该是什么样的呢?

你说的ChainManager合约是指 https://github.com/citahub/cita/blob/develop/scripts/contracts/src/system/ChainManager.sol
这个合约不用自己部署,是cita的系统合约,链起来之后就有了,地址是 0xffffffffffffffffffffffffffffffffff020002

如果是这个合约的话,newSideChain函数签名如下:
function newSideChain(uint sideChainId, address[] addrs)
看你传的参数,应该是sideChainId为0。是不是主链的chainid是0?
因为里面有个检查:
require(
myChainId != sideChainId,
“ChainId should not equal to sideChainId.”
);