From 6b1cbc3b7d4d174c87240eceb4ddf081ec48a21a Mon Sep 17 00:00:00 2001 From: Aten Date: Wed, 30 Sep 2020 14:40:53 +0800 Subject: [PATCH] fix types for BtcPartialMerkleTree (#277) --- scripts/chainx-js/chainx_types_manual.json | 6 +----- scripts/chainx-js/res/chainx_rpc.json | 2 +- scripts/chainx-js/res/chainx_types.json | 6 +----- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/scripts/chainx-js/chainx_types_manual.json b/scripts/chainx-js/chainx_types_manual.json index 6ba282098512e..49f25671daf31 100644 --- a/scripts/chainx-js/chainx_types_manual.json +++ b/scripts/chainx-js/chainx_types_manual.json @@ -142,11 +142,7 @@ "nonce": "u32" }, "BtcTransaction": "Vec", - "BtcPartialMerkleTree": { - "tx_count": "u32", - "hashes": "Vec", - "bits": "Vec" - }, + "BtcPartialMerkleTree": "Vec", "BtcRelayedTxInfo": { "block_hash": "H256", "merkle_proof": "BtcPartialMerkleTree" diff --git a/scripts/chainx-js/res/chainx_rpc.json b/scripts/chainx-js/res/chainx_rpc.json index ebb50c0672d2f..7436fc5beab5a 100644 --- a/scripts/chainx-js/res/chainx_rpc.json +++ b/scripts/chainx-js/res/chainx_rpc.json @@ -351,4 +351,4 @@ "type": "NominatorInfo" } } -} \ No newline at end of file +} diff --git a/scripts/chainx-js/res/chainx_types.json b/scripts/chainx-js/res/chainx_types.json index a7e61293eb193..7a3ebc11c1576 100644 --- a/scripts/chainx-js/res/chainx_types.json +++ b/scripts/chainx-js/res/chainx_types.json @@ -306,11 +306,7 @@ }, "BtcCompact": "u32", "BtcTransaction": "Vec", - "BtcPartialMerkleTree": { - "txCount": "u32", - "hashes": "Vec", - "bits": "Vec" - }, + "BtcPartialMerkleTree": "Vec", "BtcRelayedTxInfo": { "blockHash": "H256", "merkleProof": "BtcPartialMerkleTree"